Exemplo n.º 1
0
 def on_run_protocol(self, widget=None, data=None):
     if widget is None or contains_pointer(widget, data.get_coords()):
         app = get_app()
         if app.running:
             self.pause_protocol()
         else:
             self.run_protocol()
         return True
     return False
Exemplo n.º 2
0
 def on_last_step(self, widget=None, data=None):
     if widget is None or contains_pointer(widget, data.get_coords()):
         app = get_app()
         app.protocol.last_step()
         return True
     return False