[PyKDE] TypeError on emit()
    Andreas Pakulat 
    apaku at gmx.de
       
    Tue Feb  7 09:59:20 GMT 2006
    
    
  
On 06.02.06 22:39:10, Patrick Stinson wrote:
> Appearantly you have to specifiy an argument list with the new
> custom signals, and use SIGNAL(), so I did:
Who said that you need a list?
>     self.emit(SIGNAL('moved(int)'), [delta])
If delta is of type "int" then this should read
self.emit(SIGNAL('moved(int)'), delta)
emit takes a variable number of arguments, thus when you want to emit 
moved(int newpos, int oldpos)
You'd just do 
self.emit(SIGNAL('moved(int, int)'), oldpos, newpos)
Andreas
-- 
You will be called upon to help a friend in trouble.
    
    
More information about the PyQt
mailing list