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 <[email protected]>
Organization: Tachyon Technologies, http://tachyon.in
To: David Boddie <[email protected]>
References: <[email protected]>
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
BroadLabel.
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.
Regards,
[roshan;]
--
Roshan Mathews http://teamtalk.im
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt