Error handling for GUI callbacks
Dieser Commit ist enthalten in:
Ursprung
b2fc8f3b7c
Commit
3e7171c8ef
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
2
pdf-sign
2
pdf-sign
|
@ -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)
|
||||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren