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
_______________________________________________
Users mailing list
[email protected]
https://lists.geany.org/cgi-bin/mailman/listinfo/users

Reply via email to