Question:
how to show tkinter output on a webpage in python
code snippet
Question:
how to show tkinter output on a webpage in python
code snippet
You might have to use a Python - HTML library, or just use HTML and build a scalable window system.
Not even sure you can as tk was meant for GUI of desktop apps.
You can embed your repl by following these docs: https://docs.replit.com/hosting/embedding-repls. Otherwise, you could probably redirect visual data to a websocket and render it client-side.
This is definitely a first, why would you want to show a GUI output in HTML.
I’m creating an online python compiler so I can not show tkinter output on the webpage
You need to use something else as the GUI on the browser has to be html not Tk. Tk is not for web pages but traditional apps.
You’d better off trying to use javascript’s canvas and/or some 2d javascript library
Replit does this so it is possible. However the others are right it’s not an easy thing to try.