diff --git a/async_tkinter_loop.py b/async_tkinter_loop.py index 536b15a..06e65ad 100644 --- a/async_tkinter_loop.py +++ b/async_tkinter_loop.py @@ -15,7 +15,7 @@ async def main_loop(root: tkinter.Tk) -> None: """ while True: # Process all pending events - while root.dooneevent(_tkinter.DONT_WAIT): + while root.dooneevent(_tkinter.DONT_WAIT) > 0: pass try: diff --git a/pyproject.toml b/pyproject.toml index f7eccdc..b7f7e2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "async-tkinter-loop" -version = "0.8.0" +version = "0.8.1" description = "Asynchronous mainloop implementation for tkinter" authors = ["insolor "] license = "MIT" diff --git a/tests/test_async_tk_loop.py b/tests/test_async_tk_loop.py index 74caac2..1051d4d 100644 --- a/tests/test_async_tk_loop.py +++ b/tests/test_async_tk_loop.py @@ -6,7 +6,7 @@ from async_tkinter_loop import async_handler, async_mainloop -TIMEOUT = 30 +TIMEOUT = 60 @pytest.mark.timeout(TIMEOUT)