[PyKDE] Help -- QObject.connect() fails -- WId not recognized.

Maurizio Colucci seguso.forever at tin.it
Mon Aug 23 18:03:19 BST 2004


On Monday 23 August 2004 17:41, Maurizio Colucci wrote:
> 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
>

I saw the post 

  http://www.mail-archive.com/pykde%40mats.imk.fraunhofer.de/msg01444.html

and it seems it is a known sip problem. 

Wasn't it fixed for sip 4?

If it wasn't, I absolutely need a quick hack...

-- 
Maurizio Colucci
http://logicaldesktop.sourceforge.net




More information about the PyQt mailing list