[PyKDE] pyuic3 and custom widgets
Aurélien Gâteau
aurelien at dental-on-line.fr
Thu Aug 28 12:11:01 BST 2003
Le Mercredi 27 Août 2003 22:53, Christian Bird a écrit :
> Has anyone tried to use pyuic3 on ui files that include custom widgets? In
> the past if you created a customwidget in designer and specified
> mycustomwidget.h as the include file, then pyuic would generate:
>
> from mycustonwidget import customwidget
>
> as expected. I'm right now using PyQt version 3.8 and it doesn't look like
> pyuic3 is doing the "from <includefile> import <classname>" magic anymore.
> If I'm wrong and someone has seen this work for version 3.8 please let me
> know. thanks.
This behaviour changed in PyQt 3.6. You must now declare your imports as
comments in the file. Have a look at:
http://www.riverbankcomputing.co.uk/pyqt/docs/x95.html
Hope this helps,
Aurélien
More information about the PyQt
mailing list