[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] pyuic3 and custom widgets
From:       Aurélien Gâteau <aurelien () dental-on-line ! fr>
Date:       2003-08-28 10:00:03
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic