Skip to content

Commit

Permalink
catch KeyboardInterrupt exception
Browse files Browse the repository at this point in the history
  • Loading branch information
julrog committed Dec 29, 2022
1 parent 19449bb commit 11db099
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/ui_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def start(self, layer_data: List[int] = None):
self.processing_setting.set()
self.generate()

self.gui_root.mainloop()
try:
self.gui_root.mainloop()
except(KeyboardInterrupt):
print('Closing')
self.settings["Closed"] = True

def handle_configure(self, event):
Expand Down

0 comments on commit 11db099

Please sign in to comment.