For anyone having a problem with sys.exit(1)
in @martineau’s code – if you replace sys.exit(1)
with self.master.destroy()
the program ends gracefully. I lack the reputation to add a comment, hence the seperate answer.
More Related Contents:
- Are lists thread-safe?
- Threads and tkinter
- How to use threading in Python?
- Trying to fix tkinter GUI freeze-ups (using threads)
- How to start threads at the same time in Python [duplicate]
- With “args” vs without “args” to pass arguments to a thread in Python
- Timeout on a function call
- How to pass arguments to a Button command in Tkinter?
- Tkinter: How to use threads to preventing main event loop from “freezing”
- PermissionError: [Errno 13] Permission denied
- Why is Tkinter Entry’s get function returning nothing?
- thread starts running before calling Thread.start
- RuntimeError: main thread is not in main loop
- How to terminate a thread when main program ends?
- Which tkinter modules were renamed in Python 3?
- What’s the difference between “update” and “update_idletasks”?
- Using win32com with multithreading
- Removing the TK icon on a Tkinter window
- tkinter.TclError: image “pyimage3” doesn’t exist
- Program freezing during the execution of a function in Tkinter
- Tkinter resize background image to window size
- Tkinter: How to get frame in canvas window to expand to the size of the canvas?
- cx_Freeze converted GUI-app (tkinter) crashes after pressing plot button
- Difference between “grid” and “pack” geometry managers
- Meaning of daemon property on Python Threads
- Running a Tkinter form in a separate thread
- Tkinter error: Couldn’t recognize data in image file
- Threaded Tkinter script crashes when creating the second Toplevel widget
- Python Tkinter Label redrawing every 10 seconds
- How do I resize buttons in pixels? (Tkinter)