Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion async_tkinter_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <insolor@gmail.com>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_async_tk_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from async_tkinter_loop import async_handler, async_mainloop

TIMEOUT = 30
TIMEOUT = 60


@pytest.mark.timeout(TIMEOUT)
Expand Down