[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QObject.sender() bug
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2009-11-25 9:08:55
Message-ID: 1fbb647f82548d2e6f6c2dd53455dd85 () localhost
[Download RAW message or body]

On Wed, 25 Nov 2009 10:03:58 +0100, Marcos Dione <mdione@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
_______________________________________________
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