[Twisted-Python] PySide (Qt4) <-> Twisted reactor integration

velociraptor Genjix aphidia at hotmail.com
Wed Oct 27 23:08:58 EDT 2010


Hey,
I've just checked out http://github.com/ghtdak/qtreactor and it works with PySide. I simply did:
try:    from PyQt4.QtCore import QSocketNotifier, QObject, SIGNAL, QTimer, QCoreApplication    from PyQt4.QtCore import QEventLoopexcept ImportError:    from PySide.QtCore import QSocketNotifier, QObject, SIGNAL, QTimer, QCoreApplication    from PySide.QtCore import QEventLoop
I believe there was an issue before about licenses since PyQt used GPL? Well PySide uses LGPL, so twisted should include this reactor loop only importing PySide :) It works.
Anyone wishing to confirm this can find several packages on their site:
http://developer.qt.nokia.com/wiki/PySideBinariesLinuxhttp://developer.qt.nokia.com/wiki/PySideBinariesWindows 		 	   		  


More information about the Twisted-Python mailing list