Re: [PyQt] Using functools.partial objects as slots.

2007-07-16 Thread Martin Blais
On 7/14/07, Phil Thompson <[EMAIL PROTECTED]> wrote: > At the moment only lambda is treated specially. I either need to make > partials special as well, or bite the bullet and always increment the > reference count of the slot. Tonight's SIP snapshot should allow partials to be used as slots wit

Re: [PyQt] Using functools.partial objects as slots.

2007-07-14 Thread Phil Thompson
On Thursday 12 July 2007 3:34 pm, Phil Thompson wrote: > On Tuesday 10 July 2007 11:03 pm, Martin Blais wrote: > > Hi Phil > > > > I have this code, which I hoped would work: > > > > ... > > for i in xrange(3): > > lev = LevelUI(container) > > > > cu

Re: [PyQt] Using functools.partial objects as slots.

2007-07-12 Thread Phil Thompson
On Tuesday 10 July 2007 11:03 pm, Martin Blais wrote: > Hi Phil > > I have this code, which I hoped would work: > > ... > for i in xrange(3): > lev = LevelUI(container) > > curried = partial(self.on_level_price_valueChanged, lev) > QO

[PyQt] Using functools.partial objects as slots.

2007-07-10 Thread Martin Blais
Hi Phil I have this code, which I hoped would work: ... for i in xrange(3): lev = LevelUI(container) curried = partial(self.on_level_price_valueChanged, lev) QObject.connect(lev.price, SIGNAL("valueChanged(double)"),