[PyKDE] pyuic doesn't import kde modules

Sebastian Kügler sebas at kde.nl
Thu Apr 7 14:50:57 BST 2005


On Thursday 07 April 2005 15:29, Diez B. Roggisch wrote:
> > As $subject says, pyuic does not seem to be aware of the fact that kde
> > modules are needed when compiling .ui files that are using KDE widgets.
> > To reproduce it:

> > I came across this when designing a GUI (d'oh!), as soon as I added the
> > first KDE widget, I had to manually add the missing includes before I was
> > able to test. Did I miss something?
>
> In qt-designer you can add a form-comment that starts with Python: - all
> that follows will be copied literally into the generated source. So that's
> the place to put import kde statements. No idea how that works with
> kdevdesigner, didn't use it. But if its based on qt-designer, it will work.

Thanks, exactly what I was looking for!

Cheers,

sebas
-- 
  http://vizZzion.org   |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Experience is directly proportional to the amount of equipment ruined.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050407/fa03dc1f/attachment.bin


More information about the PyQt mailing list