This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients skip.montanaro
Date 2022-04-01.17:18:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648833483.36.0.0222315119123.issue47190@roundup.psfhosted.org>
In-reply-to
Content
After looking around and asking, it appears there is no built-in integration of the tkinter and asyncio event loops. That would seem to be a good thing, at least as an example. I wrote a simple hello world which creates an AsyncTk class and uses asyncio-driven event handling. This is clearly incomplete, but might be a useful starting point, even if just as a seed for discussion or as an example for tkinter or asyncio documentation.

Discussion/thread references:

https://mail.python.org/pipermail/python-list/2022-March/905783.html
https://discuss.python.org/t/connecting-asyncio-and-tkinter-event-loops/14722/7

The code in its most basic form is attached. (I have another version which uses pynput to track keyboard and mouse events.)
History
Date User Action Args
2022-04-01 17:18:03skip.montanarosetrecipients: + skip.montanaro
2022-04-01 17:18:03skip.montanarosetmessageid: <1648833483.36.0.0222315119123.issue47190@roundup.psfhosted.org>
2022-04-01 17:18:03skip.montanarolinkissue47190 messages
2022-04-01 17:18:03skip.montanarocreate