From 613434601166c3bc543176d7b8ec35deec54c712 Mon Sep 17 00:00:00 2001 From: insolor Date: Tue, 25 Apr 2023 17:07:45 +0300 Subject: [PATCH 1/3] Check dooneevent() return value explicitly --- async_tkinter_loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From 60ecd1a782748cf0fc93c8d03185adb5fa009e64 Mon Sep 17 00:00:00 2001 From: insolor Date: Tue, 25 Apr 2023 17:08:37 +0300 Subject: [PATCH 2/3] Version 0.8.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 4ccf352452542c134bb61a57b9c54640e6b7134b Mon Sep 17 00:00:00 2001 From: insolor Date: Tue, 25 Apr 2023 17:15:16 +0300 Subject: [PATCH 3/3] Change timeout in tests to 60s --- tests/test_async_tk_loop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)