On Fri, 25 May 2018 at 10:45, Colomban Wendling lists.ban@herbesfolles.org wrote:
Le 20/05/2018 à 01:18, Lex Trotman a écrit :
Try reading
https://docs.python.org/3/library/tkinter.html#a-simple-hello-world-program
and see what your script is missing to make it run as a complete program.
FTR, from
http://python-textbok.readthedocs.io/en/1.0/Introduction_to_GUI_Programming....
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.
application because Python just quits as it has done all processing. Launching the main loop obviously fixes the issue.
Regards, Colomban _______________________________________________ Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users