Skip to content

Instantly share code, notes, and snippets.

@jsbueno
jsbueno / tkasync.py
Last active September 7, 2021 03:10
asyncio tkinter
"""
Sample file to enable tkinter to run with co-routine and asyncio code
with no need for extra threads or blocking the UI
(this will likely be upgraded to a full package at some point in time)
"""
a,C,blip,J,P,m,t,D,R,I,Z,X,d,G,E,n="base","sl",26,"".join,print,"b85","time",dict,range,iter,zip,__import__,"decode",getattr,"eep","64"
a=[(lambda x:(P('\b'*blip+x,end='',flush=True),G(X(t),C+E)(0.2)))(J((D([(x[0],chr(x[1])) for x in (Z(*([I(G(X(a+n),m+d)(b'7jFn@7$FvJ408}~1bPc{3S|IB4`~8y4sr>04dD?i6?Fzd6mkP;5+DU22W|mn86guw'))]*2)))][:i+1])).get(j,' ') for j in R(blip))) for i in R(blip)]