I want to make a sequence of events but in my code yield(self,'moveforward_done') doesn't wait the moveforward() execution and starts executing do_event() function again. There is also endless moving car (loop?) because of this. How to fix this code or even make the better implementation of this idea?
for i in right_vbox.get_children():
if i.name.substr(0,7) == 'movecar':
if checkb1.pressed and checkb2.pressed:
car1.brake = 0
car1.engine_force = 40
car1.engine_force = 0
car1.brake = 1