uic.load (was: [PyQt] Re: Problem with latest PyQt4 snapshot)
Phil Thompson
phil at riverbankcomputing.com
Tue Sep 22 18:57:46 BST 2009
On Tue, 22 Sep 2009 19:42:27 +0200, Arnold Krille <arnold at arnoldarts.de>
wrote:
> Hi,
>
> On Tuesday 22 September 2009 19:04:16 Phil Thompson wrote:
>> On Tue, 22 Sep 2009 18:42:47 +0200, Detlev Offenbach
>> <detlev at die-offenbachs.de> wrote:
>> > On Dienstag, 22. September 2009, Phil Thompson wrote:
>> >> If you don't have control over the version of PyQt your users are
>> >> using
>> >> then you should run pyuic as part of your installation process (or
>> >> dynamically load the .ui files).
>> > That is too bad and pyuic didn't do that in the past.
>> Yes it did, it just doesn't happen very often and only when necessary.
>> uic
>> is the same.
>
> on a side note: Is it possible to have uic.load() respect the
> python-library
> dirs?
I'm not convinced it's a good idea...
> So one can put the ui-files next to the py-files and not worry about
> paths?
>
> Or is that already implemented? (If yes, it didn't seem to work for
> ffado-mixer
> when I tried first...)
It's easy enough to implement something yourself using __file__.
Or put the .ui files in a resource file. The current PyQt snapshot has a
fix to make that work.
Phil
More information about the PyQt
mailing list