Error handling for GUI callbacks

Dieser Commit ist enthalten in:
Axel Svensson 2021-10-12 17:33:46 +02:00
Ursprung b2fc8f3b7c
Commit 3e7171c8ef

Datei anzeigen

@ -132,6 +132,8 @@ def main(args):
nonlocal doSign nonlocal doSign
doSign=True doSign=True
root.destroy() root.destroy()
# Error handling
tk.Tk.report_callback_exception = lambda self, exc, val, tb: die(val)
# Window and menu # Window and menu
root = tk.Tk() root = tk.Tk()
rootmenu = tk.Menu(root) rootmenu = tk.Menu(root)