I have been trying to make a python with tkinter repl but it doesn't seem to work.
So I’ve looked at some ask questions similar to yours, so maybe you have to make a repl and set the languge to tkinter instead of python.
Hopefully that works, otherwise I don’t think tkinter works on repl.it
But you can try to do what I recommended.
Hope this helps!