You should place root.mainloop()
into the last line. Your code pauses when running root.mainloop()
and it will be run after you close the window. So there is nothing.
Still cannot run? Your program may contains some mistakes and typos and you have to fix it.