[PyKDE] Help -- QObject.connect() fails -- WId not recognized.
Maurizio Colucci
seguso.forever at tin.it
Mon Aug 23 16:41:40 BST 2004
Hello.
I don't understand this error:
kwinmod= KWinModule()
def onActiveWindowChanged(wid):
print "onActiveWindowChanged" + str(wid)
QObject.connect(kwinmod, SIGNAL("activeWindowChanged(WId)"),
onActiveWindowChanged)
The output is:
File "/dat/pub/src/by-mau/logicaldesktop/LogicalDesktop/main.py", line 1357, in run
QObject.connect(kwinmod, SIGNAL("activeWindowChanged(WId)"), onActiveWindowChanged)
RuntimeError: Signal has wrong argument types for slot
Since WId is typedef'd as an int, I tried to put "int" instead of "WId".
But the output becomes:
QObject::connect: No such signal KWinModule::activeWindowChanged(int)
QObject::connect: (sender name: 'kwin_module')
QObject::connect: (receiver name: 'unnamed')
What can I do?
Thanks a lot for any help.
--
Maurizio Colucci
http://logicaldesktop.sourceforge.net
More information about the PyQt
mailing list