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 _(event): TTTruck.loop_rate(random.random() * 4)