Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-25 Thread Andreas Pakulat
On 22.01.06 15:19:13, Torsten Marek wrote: > .: Create a type on the fly and use it as a base class (slightly more > involved) Just tried that and it basically works. However :-): Do you see any way that this would work with custom widgets? It currently doesn't find the imports of the included

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-25 Thread Andreas Pakulat
On 25.01.06 07:38:19, Torsten Marek wrote: > Hi, > > I was a bit short yesterday, but it was already late. I meant > > @signature("int") > on_upperspin_valueChanged(self, value): > ... > > and the decorator saves the signature as an attribute of the function, for use > by connectSlotsByName.

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Torsten Marek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Pakulat schrieb: However, it gets called with a QString, which is the other signal variant of QSpinBox. What do I have to do to make it work? >>> >>> >>>Seems like a bug in pyuic4, but I don't have time to look into it ATM, >>>so

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 23:47:59, Torsten Marek wrote: > Andreas Pakulat schrieb: > > On 24.01.06 22:47:32, Detlev Offenbach wrote: > > > >>Am Dienstag, 24. Januar 2006 22:30 schrieb Andreas Pakulat: > >> > >>>I think you are, look for connectSlotsByName in the compiled file. Works > >>>here perfectly. > >> >

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Torsten Marek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Pakulat schrieb: > On 24.01.06 22:47:32, Detlev Offenbach wrote: > >>Am Dienstag, 24. Januar 2006 22:30 schrieb Andreas Pakulat: >> >>>I think you are, look for connectSlotsByName in the compiled file. Works >>>here perfectly. >> >>Doesn't ove

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 22:47:32, Detlev Offenbach wrote: > Am Dienstag, 24. Januar 2006 22:30 schrieb Andreas Pakulat: > > I think you are, look for connectSlotsByName in the compiled file. Works > > here perfectly. > > Doesn't over here. At least my quick test failed. I have a QSpinBox and > wanted > to h

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Phil Thompson
On Tuesday 24 January 2006 9:47 pm, Detlev Offenbach wrote: > Am Dienstag, 24. Januar 2006 22:30 schrieb Andreas Pakulat: > > On 24.01.06 22:23:30, Detlev Offenbach wrote: > > > I just installed the latest PyQt4 snapshot, which includes your new > > > autoconnect feature. I compiled a .ui file and

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Detlev Offenbach
Am Dienstag, 24. Januar 2006 22:30 schrieb Andreas Pakulat: > On 24.01.06 22:23:30, Detlev Offenbach wrote: > > I just installed the latest PyQt4 snapshot, which includes your new > > autoconnect feature. I compiled a .ui file and tried to find some trace > > of this feature. However, I didn't succ

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 22:23:30, Detlev Offenbach wrote: > I just installed the latest PyQt4 snapshot, which includes your new > autoconnect feature. I compiled a .ui file and tried to find some trace of > this feature. However, I didn't succeed (maybe I am getting tiered). How does > your autoconnect feat

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 22:23:30, Detlev Offenbach wrote: > I just installed the latest PyQt4 snapshot, which includes your new > autoconnect feature. I compiled a .ui file and tried to find some trace of > this feature. However, I didn't succeed (maybe I am getting tiered). How does > your autoconnect feat

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Detlev Offenbach
Please disregard the question. I just found it. Should better go to bed. Detlev Am Dienstag, 24. Januar 2006 22:23 schrieb Detlev Offenbach: > I just installed the latest PyQt4 snapshot, which includes your new > autoconnect feature. I compiled a .ui file and tried to find some trace of > this fe

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Detlev Offenbach
I just installed the latest PyQt4 snapshot, which includes your new autoconnect feature. I compiled a .ui file and tried to find some trace of this feature. However, I didn't succeed (maybe I am getting tiered). How does your autoconnect feature work with compiled .ui files? Detlev Am Sonntag,

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-23 Thread Torsten Marek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Giovanni Bajo schrieb: > Torsten Marek <[EMAIL PROTECTED]> wrote: > > >>>def compileToType(filename): >>>code_string = cStringIO.StringIO() >>>widget_info = Compiler.compileUi(file(filename, "r"), >>>code_string) # the buffer code_string

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-22 Thread Giovanni Bajo
Torsten Marek <[EMAIL PROTECTED]> wrote: >> def compileToType(filename): >> code_string = cStringIO.StringIO() >> widget_info = Compiler.compileUi(file(filename, "r"), >> code_string) # the buffer code_string now contains the generated >> Python code widget_module = compile(code_st

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-22 Thread Andreas Pakulat
On 22.01.06 15:19:13, Torsten Marek wrote: > with the latest pyuic snapshot (should appear somewhere next week) and latest > PyQt4/sip snapshot, signal autoconnect now works, which was the last big point > for pyuic. Great. > If you want to use pyuic code in your own application rather than gener

[PyKDE] Using UI files in your app with PyQt4

2006-01-22 Thread Torsten Marek
Hello all, with the latest pyuic snapshot (should appear somewhere next week) and latest PyQt4/sip snapshot, signal autoconnect now works, which was the last big point for pyuic. If you want to use pyuic code in your own application rather than generating the code statically, there are several pos