[Fwd: Re: [PyQt] Reassigning resizeEvent -- changes in 4.6]
roshan at tachyontech.net
Mon Oct 12 20:00:44 BST 2009
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>
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.
Roshan Mathews http://teamtalk.im
More information about the PyQt