[PyKDE] TypeError on emit()
Patrick Stinson
patrickkidd at gmail.com
Tue Feb 7 07:39:10 GMT 2006
I'm trying to emit a custom python signal. in PyQt3, you just did
self.emit(PYSIGNAL('moved'),
(delta,)). Appearantly you have to specifiy an argument list with the new
custom signals, and use SIGNAL(), so I did:
<type 'int'>
Traceback (most recent call last):
File "/home/patrick/repos/pk/widgets/pixmapwidgets.py", line 379, in
mouseMoveEvent
self.emit(SIGNAL('moved(int)'), [delta])
TypeError: Argument 0 of signal QAbstractSlider.moved(int) has an invalid
type
I'm printing to the type of "delta" before the traceback to prove that it is
an int. What's wrong with this picture?
--
Patrick Kidd Stinson
http://pkaudio.sourceforge.net/
http://pksampler.sourceforge.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20060207/b9bbc6d7/attachment.html
More information about the PyQt
mailing list