[Fwd: Re: [PyQt] Reassigning resizeEvent -- changes in 4.6]
phil at riverbankcomputing.com
Mon Oct 12 20:32:22 BST 2009
On Tue, 13 Oct 2009 00:30:44 +0530, Roshan Mathews <roshan at tachyontech.net>
> David, sorry about mailing you direct. Forwarding to the list.
> -------- Original Message --------
> Subject: Re: [PyQt] Reassigning resizeEvent -- changes in 4.6
> Date: Mon, 12 Oct 2009 23:49:47 +0530
> From: Roshan Mathews <roshan at tachyontech.net>
> Organization: Tachyon Technologies, http://tachyon.in
> To: David Boddie <dboddie at trolltech.com>
> References: <200910121706.05705.dboddie at trolltech.com>
> hey David,
> David Boddie wrote:
>> Actually, you implement resizeLabel(), not resizeEvent(), in your code:
>> def setText(self, text):
>> super(BroadLabel, self.label).setText('!!!! %s !!!!' % text)
>> def resizeLabel(self, event):
>> print 'Resizing label'
>> Is that intentional?
> In Container's __init__ I say:
> self.label.resizeEvent = self.resizeLabel
> I didn't want to modify Container's resizeEvent, just set it for
> This was just a toy example of what broke (went obsolete?) in my
> code when I upgraded to 4.6 ... if this is intentional I can use
> an event filter, it was just easier earlier - so I want to make
> sure before I change my code.
It's a bug that is fixed in current snapshots. PyQt v4.6.1 and SIP v4.9.1
will be released before the end of the week.
More information about the PyQt