Metadata-Version: 2.4
Name: qt-reactor
Version: 0.6.1
Summary: Twisted Qt integration for Qt4, Qt5, and Qt6 using qtpy
Home-page: https://github.com/frmdstryr/qt-reactor
Author: Christopher R. Wood
Author-email: chris@leastauthority.com
License: MIT
Keywords: Qt,twisted,qtpy
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: X11 Applications :: Qt
Classifier: Framework :: Twisted
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Natural Language :: English
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE
Requires-Dist: twisted
Requires-Dist: qtpy
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

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.

.. _Python 3 test runner: https://twistedmatrix.com/trac/browser/trunk/admin/run-python3-tests

Install the reactor before calling ``unittest.main()``.

::

    import qreactor
    qreactor.install()
    unittest.main(...)
