[PyQt] QObject.sender() bug

Marcos Dione mdione at grulic.org.ar
Wed Nov 25 09:03:58 GMT 2009


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.

-- 
(Not so) Random fortune:
Maebe: Do you guys know where I could get one of those gold T-shaped
    pendants?
Michael: That's a cross.
Maebe: Across from where?
	    -- Arrested development


More information about the PyQt mailing list