From 15fd48598bbe00dfc98e8c9ddc8e735b8deb9ab0 Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Sat, 30 Sep 2023 14:22:17 +0200 Subject: [PATCH] Added shortcuts for loading, calculating and saving --- graxpert/gui.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/graxpert/gui.py b/graxpert/gui.py index 51af13a..51f42d9 100644 --- a/graxpert/gui.py +++ b/graxpert/gui.py @@ -156,7 +156,13 @@ def create_widget(self): self.master.bind("", self.undo) # undo self.master.bind("", self.redo) # redo self.master.bind("", self.undo) # undo on macs - self.master.bind("", self.redo) # redo on macs + self.master.bind("", self.redo) # redo on macs + self.master.bind("", self.menu_open_clicked) + self.master.bind("", self.calculate) + self.master.bind("", self.save_image) + self.master.bind("", self.menu_open_clicked) + self.master.bind("", self.calculate) + self.master.bind("", self.save_image) #Side menu @@ -503,7 +509,7 @@ def update_saturation(self, event=None): self.redraw_image() - def save_image(self): + def save_image(self, event=None): if(self.saveas_type.get() == "16 bit Tiff" or self.saveas_type.get() == "32 bit Tiff"): @@ -625,7 +631,7 @@ def reset_backgroundpts(self): self.cmd.execute() self.redraw_image() - def calculate(self): + def calculate(self, event=None): if self.images["Original"] is None: messagebox.showerror("Error", _("Please load your picture first."))