On Tue, 13 Oct 2009 00:30:44 +0530, Roshan Mathews <[email protected]>
wrote:
> 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.

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.

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to