Skip to content

Commit 9c29710

Browse files
committed
update down and zero button event
1 parent e7428af commit 9c29710

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/navigate/controller/sub_controllers/stage_controller.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,11 +337,11 @@ def set_position_silent(self, position):
337337
position : dict
338338
{'x': value, 'y': value, 'z': value, 'theta': value, 'f': value}
339339
"""
340-
self.unbind_position_callbacks()
340+
# self.unbind_position_callbacks()
341341

342342
self.set_position(position)
343343

344-
self.bind_position_callbacks()
344+
# self.bind_position_callbacks()
345345

346346
def get_position(self):
347347
"""This function returns current position from the view.
@@ -446,6 +446,7 @@ def handler():
446446
# guarantee stage won't move out of limits
447447
if position_val.get() != temp:
448448
position_val.set(temp)
449+
self.position_callback(axis)()
449450

450451
return handler
451452

@@ -468,6 +469,7 @@ def zero_btn_handler(self, axis):
468469

469470
def handler():
470471
position_val.set(0)
472+
self.position_callback(axis)()
471473

472474
return handler
473475

@@ -485,6 +487,8 @@ def xy_zero_btn_handler(self):
485487
def handler():
486488
x_val.set(0)
487489
y_val.set(0)
490+
self.position_callback("x")()
491+
self.position_callback("y")()
488492

489493
return handler
490494

0 commit comments

Comments
 (0)