[PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt - semi solution

2004-11-04 Thread Truls A. Tangstad
I thought I'd just fill in anyone interested about the solution we ended up using. It's not perfect, but a functional hack, based on suggestions by Toby Dickenson[1] and lots of experimentation, and is probably the way most people are doing it, but the simple solutions are not always in plain sight

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-04 Thread Phil Thompson
> On Thu, Nov 04, 2004 at 09:28:26AM -, Phil Thompson wrote: >> Truls A. Tangstad wrote: >> > I'd be quite happy with syntax such as this: >> > >> > >> > from uiloader import ModuleFactory >> > >> > mymodule = ModuleFactory('/path/to/ui/file/here.ui') >> > MyClass = mymodule.MyClass # if you r

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-04 Thread Truls A. Tangstad
On Thu, Nov 04, 2004 at 09:28:26AM -, Phil Thompson wrote: > Truls A. Tangstad wrote: > > I'd be quite happy with syntax such as this: > > > > > > from uiloader import ModuleFactory > > > > mymodule = ModuleFactory('/path/to/ui/file/here.ui') > > MyClass = mymodule.MyClass # if you really need

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-04 Thread Phil Thompson
> On Wed, Nov 03, 2004 at 11:37:47PM +0100, Sundance wrote: >> I heard Truls A. Tangstad said: >> >> > Maybe a possible solution might be to create a QWidgetFactory >> > replacement that runtime uses pyuic and execs the result... if >> > nothing else this allows custom components specified in the D

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-04 Thread Truls A. Tangstad
On Wed, Nov 03, 2004 at 11:37:47PM +0100, Sundance wrote: > I heard Truls A. Tangstad said: > > > Maybe a possible solution might be to create a QWidgetFactory > > replacement that runtime uses pyuic and execs the result... if > > nothing else this allows custom components specified in the Designe

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-03 Thread Sundance
I heard Truls A. Tangstad said: > Maybe a possible solution might be to create a QWidgetFactory > replacement that runtime uses pyuic and execs the result... if > nothing else this allows custom components specified in the Designer > to be created correctly since pyuic uses code from the Comments

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-03 Thread Truls A. Tangstad
On Wed, Nov 03, 2004 at 05:24:52PM +, Toby Dickenson wrote: > On Wednesday 03 November 2004 16:55, Truls A. Tangstad wrote: > > We use QWidgetFactory exclusively to generate the widgets runtime > > from the .ui-files, and using pyuic would put us back into > > gui-design stoneage again (gui mix

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-03 Thread Truls A. Tangstad
On Wed, Nov 03, 2004 at 03:50:25PM -0200, Gustavo Barbieri wrote: > On Wed, 3 Nov 2004 17:55:49 +0100, Truls A. Tangstad > <[EMAIL PROTECTED]> wrote: > > We've almost fully converted to designing all dialogboxes and other > > application windows in Qt Designer to use in our PyQt application, but >

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-03 Thread Gustavo Barbieri
On Wed, 3 Nov 2004 17:55:49 +0100, Truls A. Tangstad <[EMAIL PROTECTED]> wrote: > We've almost fully converted to designing all dialogboxes and other > application windows in Qt Designer to use in our PyQt application, but > I've come into a difficulty with wanting to use custom widgets > created i

Re: [PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-03 Thread Toby Dickenson
On Wednesday 03 November 2004 16:55, Truls A. Tangstad wrote: > We use QWidgetFactory > exclusively to generate the widgets runtime from the .ui-files, and > using pyuic would put us back into gui-design stoneage again (gui > mixed too much with other code, and hard to redesign components). Its al

[PyKDE] Using custom components and Qt Designer with QWidgetFactory in PyQt

2004-11-03 Thread Truls A. Tangstad
We've almost fully converted to designing all dialogboxes and other application windows in Qt Designer to use in our PyQt application, but I've come into a difficulty with wanting to use custom widgets created in Python with the Qt Designer designed dialogs. I've noted a tutorial[1] doing just tha