I'm working my way through the Web Browser Engineering book (by Pavel Panchekha & Chris Harrelson), but I'm using asyncio for my implementation instead of the book's examples.

I hit a roadblock in Chapter 2, which introduces tkinter. How do you make tkinter's event loop and asyncio's event loop play nicely together?

A bit of research led me to this fantastic library, async-tkinter-loop, which seems to solve this exact problem. Sharing in case anyone else is on a similar journey!

P.S. If you're curious, the repository I'm working on is here: https://codeberg.org/hongminhee/hongju.

2

If you have a fediverse account, you can quote this note from your own instance. Search https://hollo.social/@hongminhee/019a4832-bbe3-74bf-ac23-926ecd258c9b on your instance and quote it. (Note that quoting is not supported in Mastodon.)