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

List:       pykde
Subject:    Re: [PyKDE] pyuic and Qt Designer
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2006-04-26 7:47:22
Message-ID: 200604260934.11127.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

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

_______________________________________________
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