Skip to content

Commit

Permalink
Update the prompt bar
Browse files Browse the repository at this point in the history
  • Loading branch information
nachifur committed Aug 27, 2021
1 parent 28fee2a commit d7dcde0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ def save_img(self, event):
self.SetStatusText_(["Save", "-1", "-1", "-1"])

def refresh(self, event):
self.SetStatusText_(["Refresh", "-1", "-1", "-1"])
if self.ImgManager.img_num != 0:
self.show_img_init()
self.show_img()
else:
self.SetStatusText_(
["-1", "", "***Error: First, need to select the input dir***", "-1"])
self.SetStatusText_(["Refresh", "-1", "-1", "-1"])

def one_dir_mul_dir_auto(self, event):
self.SetStatusText_(["Input", "", "", "-1"])
Expand Down Expand Up @@ -555,9 +555,13 @@ def img_right_click(self, event):
except:
self.SetStatusText_(
["-1", "Drawing a box need click left mouse button!", "-1", "-1"])
self.refresh(event)

self.SetStatusText_(["Magnifier", "-1", "-1", "-1"])
self.refresh(event)
self.SetStatusText_(["Magnifier", "-1", "-1", "-1"])
else:
self.refresh(event)



def move_box_point(self, x, y, show_scale):
x_0, y_0, x_1, y_1 = self.xy_magnifier[0][0:4]
Expand Down

0 comments on commit d7dcde0

Please sign in to comment.