Exemplo n.º 1
0
 def sample_stage_move_rightwards(self):
     self.sample_move_distance_xRel = int(self.stage_speed.value())
     stage_movement_thread = StagemovementRelativeThread(
         -1 * self.sample_move_distance_xRel, 0)
     stage_movement_thread.current_position.connect(
         self.update_stage_current_pos)
     stage_movement_thread.start()
     time.sleep(0.5)
     stage_movement_thread.quit()
     stage_movement_thread.wait()
Exemplo n.º 2
0
 def sample_stage_move_towards(self):
     self.sample_move_x = int(float(self.stage_goto_x.text()))
     self.sample_move_y = int(float(self.stage_goto_y.text()))
     stage_movement_thread = StagemovementRelativeThread(
         self.sample_move_x, self.sample_move_y)
     stage_movement_thread.current_position.connect(
         self.update_stage_current_pos)
     stage_movement_thread.start()
     time.sleep(2)
     stage_movement_thread.quit()
     stage_movement_thread.wait()