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 --- > what's strange is that the sip file seems to be ok, but then I'm not > familiar to sip files: > > --- code --- > public: > QObject *sender() const; > %MethodCode > // This is actually protected but we never need to call the real > method. sipRes = qpycore_qobject_sender(); > %End > --- code --- > > hints?
It's a member function so it needs the instance. Usually that means calling self.sender(). Matt _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
