From bb81d7881c190f3419deafb29c7f7ee6c9884e33 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 10 Jun 2020 12:28:24 -0400 Subject: [PATCH] Use qt5 and trio guest mode --- Pipfile | 5 +++-- piker/ui/kivy/utils_async.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Pipfile b/Pipfile index bbe8a956..8e055400 100644 --- a/Pipfile +++ b/Pipfile @@ -5,7 +5,8 @@ name = "pypi" [packages] e1839a8 = {path = ".",editable = true} -trio = "*" +# use master branch for "guest mode" +trio = {git = "git://github.com/python-trio/trio.git"} Cython = "*" # use master branch kivy since wheels seem borked (due to cython stuff) kivy = {git = "git://github.com/kivy/kivy.git"} @@ -14,8 +15,8 @@ msgpack = "*" tractor = {git = "git://github.com/goodboy/tractor.git"} toml = "*" pyqtgraph = "*" -pyside2 = "*" qdarkstyle = "*" +pyqt5 = "*" [dev-packages] pytest = "*" diff --git a/piker/ui/kivy/utils_async.py b/piker/ui/kivy/utils_async.py index fd4b82da..ef6a76a0 100644 --- a/piker/ui/kivy/utils_async.py +++ b/piker/ui/kivy/utils_async.py @@ -61,10 +61,10 @@ class AsyncCallbackQueue(object): return self async def __anext__(self): - self.event.clear() + self.event = async_lib.Event() while not self.callback_result and not self.quit: await self.event.wait() - self.event.clear() + self.event = async_lib.Event() if self.callback_result: return self.callback_result.popleft()