def btn5_action(): if state == 0: TTTruck.undo() elif state == 1: TTTruck.loop_rate(random.random() * 4) elif state == 2: pass elif state == 3: pass
def btn4_action(): if state == 0: TTTruck.undo() elif state == 1: # TTTruck.stretch pass elif state == 2: pass elif state == 3: TTTruck.publish_global_changes()