Skip to content

Commit d7dcde0

Browse files
committed
Update the prompt bar
1 parent 28fee2a commit d7dcde0

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

main.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,13 @@ def save_img(self, event):
188188
self.SetStatusText_(["Save", "-1", "-1", "-1"])
189189

190190
def refresh(self, event):
191-
self.SetStatusText_(["Refresh", "-1", "-1", "-1"])
192191
if self.ImgManager.img_num != 0:
193192
self.show_img_init()
194193
self.show_img()
195194
else:
196195
self.SetStatusText_(
197196
["-1", "", "***Error: First, need to select the input dir***", "-1"])
197+
self.SetStatusText_(["Refresh", "-1", "-1", "-1"])
198198

199199
def one_dir_mul_dir_auto(self, event):
200200
self.SetStatusText_(["Input", "", "", "-1"])
@@ -555,9 +555,13 @@ def img_right_click(self, event):
555555
except:
556556
self.SetStatusText_(
557557
["-1", "Drawing a box need click left mouse button!", "-1", "-1"])
558-
self.refresh(event)
559558

560-
self.SetStatusText_(["Magnifier", "-1", "-1", "-1"])
559+
self.refresh(event)
560+
self.SetStatusText_(["Magnifier", "-1", "-1", "-1"])
561+
else:
562+
self.refresh(event)
563+
564+
561565

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

0 commit comments

Comments
 (0)