[PyQt] QObject.sender() bug
Phil Thompson
phil at riverbankcomputing.com
Wed Nov 25 09:08:55 GMT 2009
On Wed, 25 Nov 2009 10:03:58 +0100, Marcos Dione <mdione at grulic.org.ar>
wrote:
> On Tue, Nov 24, 2009 at 01:15:10PM -0700, Matt Newell wrote:
>> On Monday 23 November 2009 13:53:09 Marcos Dione wrote:
>> > I think the backtrace is eloquent enough:
>> >
>> > --- traceback ---
>> > Traceback (most recent call last):
>> > File
>> >
"/home/mdione/src/projects/satyr/collection-agregator/satyr/models.py",
>> > line 97, in addSongs sender= QObject.sender ()
>> > TypeError: first argument of unbound method QObject.sender() must be a
>> > QObject instance
>> > --- traceback ---
>>
>> It's a member function so it needs the instance. Usually that means
>> calling
>> self.sender().
>
> but the original qt function is a class method.
No it isn't.
Phil
More information about the PyQt
mailing list