qt5reactor-fork 0.2

Creator: railscoderz

Last updated:

Add to Cart

Description:

qt5reactorfork 0.2

Qt5Reactor

Using the QtReactor
Before running / importing any other Twisted code, invoke:
app = QApplication(sys.argv) # your code to init QtCore
from twisted.application import reactors
reactors.installReactor('qt5')
or
app = QApplication(sys.argv) # your code to init QtCore
import qt5reactor
qt5reactor.install()

Testing
trial --reactor=qt5 [twisted] [twisted.test] [twisted.test.test_internet]
Make sure the plugin directory is in path or in the current directory for
reactor discovery to work.


Testing on Python 3
trial does not work on Python3 yet. Use Twisted’s Python 3 test runner instead.
Install the reactor before calling unittest.main().
import qt5reactor
qt5reactor.install()
unittest.main(...)

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.