Skip to content

Commit 7b1a347

Browse files
committed
Fix broken tests
1 parent c880f94 commit 7b1a347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

async_tkinter_loop/async_tkinter_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ async def some_async_function():
6464
6565
button = tk.Button("Press me", command=some_async_function)
6666
"""
67-
return lambda *handler_args: asyncio.create_task(command(*handler_args, *args, **kwargs))
67+
return lambda *handler_args: asyncio.get_event_loop().create_task(command(*handler_args, *args, **kwargs))

0 commit comments

Comments
 (0)