Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-05-06 Thread Tim Sutton
Hi On Mon, Apr 28, 2014 at 2:30 PM, Régis Haubourg regis.haubo...@eau-adour-garonne.fr wrote: Hi Anita, I wasn't aware of that possibility. That would be great to document that in pyQgis Cookbook and to upgrade plugin builder. Note that I have been overhauling the plugin builder on my

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-05-06 Thread Tim Sutton
Hi On Sat, Apr 26, 2014 at 2:45 PM, Anita Graser anitagra...@gmx.at wrote: Hi, I'm wondering if there is an advantage in using pyuic to manually compile .ui files instead of just using uic.loadUi() in the plugin directly, e.g. from PyQt4 import uic self.dock = uic.loadUi( os.path.join(

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-05-06 Thread Nathan Woodrow
I normally do it this way: base, widget = uic.loadUiType('myui.ui') class MyWidget(base, widget): def __init__(self, parent=None) super(MyWidget, self).__init__(parent) - Nathan On Tue, May 6, 2014 at 4:52 PM, Tim Sutton li...@linfiniti.com wrote: Hi On Sat, Apr 26, 2014 at

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-05-06 Thread Tim Sutton
Hi On Tue, May 6, 2014 at 8:54 AM, Nathan Woodrow madman...@gmail.com wrote: I normally do it this way: base, widget = uic.loadUiType('myui.ui') class MyWidget(base, widget): def __init__(self, parent=None) super(MyWidget, self).__init__(parent) According to the docs[1]

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-05-06 Thread Tim Sutton
Hi On Tue, May 6, 2014 at 9:01 AM, Tim Sutton li...@linfiniti.com wrote: Hi On Tue, May 6, 2014 at 8:54 AM, Nathan Woodrow madman...@gmail.comwrote: I normally do it this way: base, widget = uic.loadUiType('myui.ui') class MyWidget(base, widget): def __init__(self, parent=None)

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-05-06 Thread Tim Sutton
Hi On Tue, May 6, 2014 at 9:04 AM, Tim Sutton li...@linfiniti.com wrote: Hi On Tue, May 6, 2014 at 9:01 AM, Tim Sutton li...@linfiniti.com wrote: Hi On Tue, May 6, 2014 at 8:54 AM, Nathan Woodrow madman...@gmail.comwrote: I normally do it this way: base, widget =

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-04-28 Thread Régis Haubourg
Hi Anita, I wasn't aware of that possibility. That would be great to document that in pyQgis Cookbook and to upgrade plugin builder. That compile part is over complicated for new users and probably we loose some potential contributors.. Cheers Régis -- View this message in context:

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-04-28 Thread Tom Kralidis
Agreed. This would also greatly simplify build / packaging workflows. Sent from my iPhone On Apr 28, 2014, at 8:30, Régis Haubourg regis.haubo...@eau-adour-garonne.fr wrote: Hi Anita, I wasn't aware of that possibility. That would be great to document that in pyQgis Cookbook and to

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-04-28 Thread Anita Graser
Hi Régis, Am 28.04.2014, 14:30 Uhr, schrieb Régis Haubourg regis.haubo...@eau-adour-garonne.fr: Hi Anita, I wasn't aware of that possibility. That would be great to document that in pyQgis Cookbook and to upgrade plugin builder. Definite +1 from me to upgrade plugin builder to this version

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-04-28 Thread Martin Dobias
Hi Anita On Mon, Apr 28, 2014 at 7:06 PM, Anita Graser anitagra...@gmx.at wrote: I wonder if there is also a way to load resources (such as icons) without having to compile them first. Only then would we get rid of all the console compile stuff. Resources can also be loaded directly from

[Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-04-26 Thread Anita Graser
Hi, I'm wondering if there is an advantage in using pyuic to manually compile .ui files instead of just using uic.loadUi() in the plugin directly, e.g. from PyQt4 import uic self.dock = uic.loadUi( os.path.join( path, dockwidget2.ui ) ) Thanks for any insights! Best wishes, Anita --

Re: [Qgis-developer] Is there an advantage in using pyuic on command line instead of uic.loadUi in plugin source?

2014-04-26 Thread Nathan Woodrow
Hey Anita, For a qgis plugin. None, or so little that it doesn't matter. There is a small overhead that you have to load it from file each time but its really nothing. There is also a LoadUiType which only loads once. Both are fine. Nathan On 26/04/2014 10:45 pm, Anita Graser