Skip to content
Snippets Groups Projects
Commit 3aaa5de1 authored by inso's avatar inso
Browse files

Using quamash branch

parent 964d5cd8
No related branches found
No related tags found
No related merge requests found
ucoinpy>=0.13 ucoinpy>=0.13
git+https://github.com/Insoleet/quamash.git@qeventloop git+https://github.com/harvimt/quamash.git@gh45
asynctest asynctest
git+https://github.com/networkx/networkx.git@v1.11 git+https://github.com/networkx/networkx.git@v1.11
\ No newline at end of file
...@@ -16,7 +16,7 @@ import jsonschema ...@@ -16,7 +16,7 @@ import jsonschema
# To force cx_freeze import # To force cx_freeze import
import PyQt5.QtSvg import PyQt5.QtSvg
from quamash import QEventLoopSelector from quamash import QSelectorEventLoop
from PyQt5.QtWidgets import QApplication from PyQt5.QtWidgets import QApplication
from sakia.gui.mainwindow import MainWindow from sakia.gui.mainwindow import MainWindow
from sakia.core.app import Application from sakia.core.app import Application
...@@ -61,7 +61,7 @@ if __name__ == '__main__': ...@@ -61,7 +61,7 @@ if __name__ == '__main__':
# activate ctrl-c interrupt # activate ctrl-c interrupt
signal.signal(signal.SIGINT, signal.SIG_DFL) signal.signal(signal.SIGINT, signal.SIG_DFL)
sakia = QApplication(sys.argv) sakia = QApplication(sys.argv)
loop = QEventLoopSelector(sakia) loop = QSelectorEventLoop(sakia)
loop.set_exception_handler(async_exception_handler) loop.set_exception_handler(async_exception_handler)
asyncio.set_event_loop(loop) asyncio.set_event_loop(loop)
......
...@@ -9,7 +9,7 @@ _application_ = [] ...@@ -9,7 +9,7 @@ _application_ = []
class QuamashTest: class QuamashTest:
def setUpQuamash(self): def setUpQuamash(self):
self.qapplication = get_application() self.qapplication = get_application()
self.lp = quamash.QEventLoopSelector(self.qapplication) self.lp = quamash.QSelectorEventLoop(self.qapplication)
asyncio.set_event_loop(self.lp) asyncio.set_event_loop(self.lp)
self.lp.set_exception_handler(lambda l, c: unitttest_exception_handler(self, l, c)) self.lp.set_exception_handler(lambda l, c: unitttest_exception_handler(self, l, c))
self.exceptions = [] self.exceptions = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment