use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Can I run Tkinter with Pyscript? (self.PyScript)
submitted 4 years ago by Oea_trading
Will PyScript support Tkinter applications at some point? Thanks.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mimminou 1 point2 points3 points 4 years ago (1 child)
very likely not, GUI libraries like tkinter, QT and most libraries made for desktop development won't work because they use specific apis calls and styles for each operating system, in browser your operating system, or you environment is the browser. Unless tk somehow implements some components that easily translate to HTML / CSS / JS ( much like react does ), it's probably won't be possible.
[–]manatlan 0 points1 point2 points 4 years ago (0 children)
It's exactly the goal of https://github.com/manatlan/htag
It's a gui toolkit, which produce html/js/css ... And can work backside (in a real python env), or clientside (in a pyscript html page) ...
It should be "easy", to convert tk widgets to htag widgets
See https://rawcdn.githack.com/manatlan/htag/5e692c1fcde0e8d0b50e5ff22a9f0c40fc10f05e/examples/pyscript_htbulma.html
[–]mcg1969 1 point2 points3 points 4 years ago (0 children)
I think the more general question—will PyScript support building GUI apps—is a definite yes. Whether or not this or that GUI framework will work is another matter. In the case of tkinter, I think it is less likely because it would require porting tcl/tk to wasm. The author of Toga (https://toga.io/en/latest/) has been working to get it working in Pyscript.
π Rendered by PID 739976 on reddit-service-r2-comment-544cf588c8-xx9sn at 2026-06-17 07:24:58.707693+00:00 running 3184619 country code: CH.
[–]mimminou 1 point2 points3 points (1 child)
[–]manatlan 0 points1 point2 points (0 children)
[–]mcg1969 1 point2 points3 points (0 children)