[PyKDE] pyuic and Qt Designer
Phil Thompson
phil at riverbankcomputing.co.uk
Wed Apr 26 09:34:11 BST 2006
On Tuesday 25 April 2006 11:15 pm, Leandro Martelli wrote:
> Hi All,
>
> I'm trying to work with Qt Designer using python custom widgets.
> I've created the custom widget, defined its signals and set the
> 'Headerfile' option.
> Reading the docs, I saw that the way to import some python file is by
> writing comments on the form.
> Is there any way I could instruct pyuic to read the <include> directive
> (inserted when we include a custom
> widget) inside the .ui file and generate the apropriate 'from <file>
> import *' ?
>
> Any reasons why it would be a bad ideia to modify pyuic to behave this way?
Because it assumes that there is a direct relationship between the name of the
header file and the name of the module. While that might work for you it
won't work for everybody.
Phil
More information about the PyQt
mailing list