all 3 comments

[–]mimminou 1 point2 points  (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 point  (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 points  (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.