I have a script that uses a tkinter interface that runs fine when running through cmd (“python”, then “import [script.py]”). Oddly running the same exact script through the command prompt with “python [script.py]” causes it to immediately close when reaching the main tkinter pane. Or executing through my jupyter notebook causes it to freeze when failing to display the main tkinter pane. No error messages appear in cmd or are printed in jupyter notebook.
Can’t share too many details but I have to assume tkinter itself isn’t a problem because it is able to summon the simple text input login screen as well as a directory selection window.
Placed debug print messages throughout the entire code hoping to see a stopping point, but all debugs codes were able to print. I suspect this has to do with the tkinter loop failing.
JJ Fuertes is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.