harvimt / quamash

Implementation of the PEP 3156 event-loop (asyncio) api using the Qt Event-Loop
BSD 2-Clause "Simplified" License
265 stars 46 forks source link

Remove dependence on modules: QtWidgets, QtGui #86

Closed zhang-peter closed 6 years ago

zhang-peter commented 6 years ago

The QCoreApplication class provides an event loop for basic Qt applications. QApplication is not necessary for every application.

QGuiApplication and QApplication can be used as the following way for some Gui Applications.

app = QApplication(sys.argv)
loop = QEventLoop(app)
asyncio.set_event_loop(loop)