Skip to content

Instantly share code, notes, and snippets.

@JoeEveryman
JoeEveryman / tkasyncio.py
Last active March 23, 2023 04:30 — forked from smontanaro/tkasyncio.py
First attempt at asyncio integration of the Tk event loop
#!/usr/bin/env python3
"Testing the idea of providing an off-the-shelf Tk event loop for asyncio"
import asyncio
import random
from tkinter import Tk, Button
class AsyncTk(Tk):
"Basic Tk with an asyncio-compatible event loop"