views:

63

answers:

1

I'm currently slamming my head against the table trying to get a QObject.connect to work with KWindowSystem, with PyKDE, my code is as follows:

from PyKDE4.kdecore import *
from PyKDE4.kdeui import *
from PyQt4.QtCore import *


#Omitted Stupid KApplication parts.

def winCheck(WId):
    print WId
kWinSys = KWindowSystem.self()
QObject.connect(kWinSys, SIGNAL("activeWindowChanged(WId)"), target_slot)
A: 

I think that is the most simple example. Also look here: http://bugs.kde.org/show%5Fbug.cgi?id=184426

I tried it with several Signals. None was sent. Tried using QApplication, KApplication. Nothing

I think somehow the bindings are bugged :/ Or some Distris don't manage building proper packages...

Franz Fellner