Twisted Qt Integration for Qt4 and Qt5 using qtpy
Project description
QReactor
Forked from qt5reactor which was forked from qt4reactor and now uses [qtpy](https://github.com/spyder-ide/qtpy) to provide to support both.
Using the QtReactor
Install using pip
pip install qt-reactor
Before running / importing any other Twisted code, invoke:
app = QApplication(sys.argv) # your code to init QtCore from twisted.application import reactors reactors.installReactor('qt')
or
app = QApplication(sys.argv) # your code to init QtCore import qreactor qreactor.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 qreactor qreactor.install() unittest.main(...)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qt-reactor-0.6.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file qt-reactor-0.6.tar.gz
.
File metadata
- Download URL: qt-reactor-0.6.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5bc563a269de74bad93ae27a255d4b237e0085ac4fde394a4d066b97e12c7ec |
|
MD5 | 6b224add0e2e4e4b3dda2f6e60bb8b58 |
|
BLAKE2b-256 | 8834d8ed297e91b1a09fcd4499c6052235247aaad26fbee5ab001242f5c4e108 |
File details
Details for the file qt_reactor-0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: qt_reactor-0.6-py2.py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea48fb9b0a25ec95f77a843bc3bc9379e6cba89ac3dc0f2feef464f09e1d53dd |
|
MD5 | 809803cf73b283a69a481781043d591d |
|
BLAKE2b-256 | 8377506a082b80c43fc50509f13c1aed9b63716295f3f0f983035b8bb49f6e23 |