Version: (using KDE 4.2.0) Compiler: Python 2.6 and gcc 4.3.3 OS: Linux Installed from: Unlisted Binary Package The following pykde program try to connect KWindowSystem::activeWindowChange(WId) to a Python function. But it failed - there's no exception raised when running, but the Python is not triggered when window focus changed. Even more strange, QObject.connect doesn't raise any exception when a non exist signal passed in (for example SIGNAL("balbal()"), is that the normal behavior of connect()? I'm using Archlinux, the version of PyQt is 4.4.4, sip is 4.7.9. import sys from PyQt4.QtCore import SIGNAL, SLOT, pyqtSignature, QObject from PyQt4.QtGui import QApplication, QMainWindow from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs from PyKDE4.kdeui import KApplication, KMainWindow, KWindowSystem class FocusListener(KMainWindow): def __init__(self): KMainWindow.__init__(self) kwin = KWindowSystem.self() QObject.connect(kwin, SIGNAL("activeWindowChanged(WId)"), self.printChange) @pyqtSignature("int") def printChange(self, wid): print "Focus changed to", wid def get_about(): appName = "TestKApplication" catalog = "Test" programName = ki18n ("TestKApplication") version = "1.0" description = ki18n ("Test KApplication") license = KAboutData.License_GPL copyright = ki18n ("(c) 2009 Haoyu Bai") text = ki18n ("none") homePage = "http://localhost" bugEmail = "baihaoyu@gmail.com" aboutData = KAboutData (appName, catalog, programName, version, description, license, copyright, text, homePage, bugEmail) return aboutData def main(): aboutData = get_about() KCmdLineArgs.init(sys.argv, aboutData) app = KApplication() listener = FocusListener() listener.show() app.exec_() if __name__=="__main__": main()
Is here the correct place to report this bug? Why there's no any response in one week?
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
Hello, unfortunately this bug is being closed as unmaintained, per request of einar77.