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

Nathan Woodrow madmanwoo at gmail.com
Sat Apr 26 05:52:30 PDT 2014


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" <anitagraser at 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( path, "dockwidget2.ui" ) )
>
> Thanks for any insights!
>
> Best wishes,
> Anita
>
>
>
> --
> anitagraser.com
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140426/8a914a90/attachment.html>


More information about the Qgis-developer mailing list