[Geany-Users] Geany on Raspberry Pi... can't see Tkinter window

Colomban Wendling lists.ban at xxxxx
Fri May 25 00:44:57 UTC 2018


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.html
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
application because Python just quits as it has done all processing.
Launching the main loop obviously fixes the issue.

Regards,
Colomban


More information about the Users mailing list