[PyKDE] python types as arguments toPyQt4 signals
Patrick Stinson
patrickkidd at gmail.com
Thu Feb 9 21:01:08 GMT 2006
What is the proper way of writing a signal argument list for python types?
Will it only work for basic types? What about types defined in c-extensions
(I'm trying gst.Message).
def on_emit(*arg):
print arg
SIG = 'bleh(dict)'
app = QApplication([])
QObject.connect(app, SIGNAL(SIG), on_emit)
app.emit(SIGNAL(SIG), {1:1})
app.processEvents()
patrick at tulkas ~/repos/pk/audio $ python test.py
Traceback (most recent call last):
File "test.py", line 10, in ?
app.emit(SIGNAL(SIG), {1:1})
TypeError: Argument 0 of signal QApplication.bleh(dict) has an invalid type
Thanks
--
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/20060209/5ebb0da3/attachment.html
More information about the PyQt
mailing list