Le 24/05/2018 à 21:56, Lex Trotman a écrit :
[…]
you can see the problem is that the program is missing a `window.mainloop()` call. This works inside a Python console because Python is running awaiting for input, but doesn't as a standalone
In fact both the other IDEs mentioned are Tk IDEs, so conveniently there is already a mainloop running.
As said it also works with the Python main loop, if you e.g. import the file as a module it behaves as the OP expected.