Skip to content

Commit

Permalink
Update canvasimage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FraidOfWater authored Nov 13, 2024
1 parent 3f9b918 commit a66b34c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions canvasimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ def control_key_press(self, event):
self.control_pressed = True
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)

#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_locked_colour)
Expand All @@ -257,6 +260,8 @@ def control_key_release(self, event):
self.control_pressed = False
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_selected_colour)
Expand All @@ -268,6 +273,8 @@ def control_key_release(self, event):
self.control_pressed = False
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_selected_colour)
Expand All @@ -281,6 +288,8 @@ def shift_key_press(self, event):
self.control_pressed = True
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_locked_colour)
Expand All @@ -295,6 +304,8 @@ def shift_key_release(self, event):
self.control_pressed = False
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_selected_colour,highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_selected_colour)
Expand Down Expand Up @@ -669,6 +680,8 @@ def time_set(self, event):
self.gui.enter_toggle = True
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_locked_colour)
Expand All @@ -679,6 +692,8 @@ def time_set(self, event):
self.gui.enter_toggle = False
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_selected_colour)
Expand Down Expand Up @@ -796,6 +811,8 @@ def manual_wheel(self): # Fixes laggy panning on first picture
def focus_canvasimage(self):
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_locked_colour)
Expand All @@ -812,6 +829,8 @@ def keystroke(self, event): # Scrolling and zooming with the keyboard
if event.keysym == "Return" and self.gui.show_next.get():
self.gui.current_selection.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.canvas.configure(highlightbackground = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_locked_colour, highlightcolor = self.gui.imageborder_locked_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_locked_colour)
Expand All @@ -824,6 +843,8 @@ def keystroke(self, event): # Scrolling and zooming with the keyboard
if not self.gui.enter_toggle and self.gui.show_next.get() and not event.state & 0x4 and not event.state & 0x1:
self.gui.current_selection.canvas.configure(highlightcolor=self.gui.imageborder_selected_colour, highlightbackground = self.gui.imageborder_selected_colour)
self.gui.current_selection.configure(highlightcolor=self.gui.imageborder_selected_colour, highlightbackground = self.gui.imageborder_selected_colour)
self.gui.current_selection.c.configure(style="Theme_square2.TCheckbutton")
self.gui.current_selection.cf.configure(bg=self.gui.square_text_box_selection_colour)
#self.gui.current_selection.bar.configure(bg = self.gui.imageborder_selected_colour, highlightcolor = self.gui.imageborder_selected_colour)

#self.gui.current_selection.canvas.itemconfig(self.gui.current_selection.sqr, fill=self.gui.imageborder_selected_colour)
Expand Down

0 comments on commit a66b34c

Please sign in to comment.