def call_forwards_right(self): try: self.after_cancel(self._job) except IndexError: pass main.robot_stop() self.forwards_right()
def call_backwards_left(self): try: self.after_cancel(self._job) except IndexError: pass main.robot_stop() self.backwards_left()
import main main.robot_stop()
def call_stop(self): try: self.after_cancel(self._job) except IndexError: pass main.robot_stop()