[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Bug obtaining signal's sender with decorated slots (was:
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2010-06-29 11:51:31
Message-ID: 17442df2d2e49f389fb7b82fd1118696 () localhost
[Download RAW message or body]
On Fri, 25 Jun 2010 00:24:59 +0200, Albert Cervera i Areny
<albert@nan-tic.com> wrote:
> A Diumenge, 20 de juny de 2010, Albert Cervera i Areny va escriure:
>> We're changing an application from using old-style 'connect(SIGNAL()
>> SLOT())' functions to new-style 'signal.connect( slot )' ones but it
>> seems that executing 'self.sender()' in the slot doesn't have the same
>> behaviour as it used to because it always returns None.
>>
>> Is there a way to know who called the slot with new-style signal and
>> slot?
>
> The attached file demonstrates the problem. sender() function doesn't
work
> if
> signal is emited using the new-style signal.emit() and the slot is
> decorated
> using @pyqtSlot()
Should be fixed in tonight's PyQt snapshot.
Thanks,
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic