def loop(): while True: padog.mainloop()
def loop(tt): padog.mainloop()
def loop2(t): padog.mainloop()
exec(open('web_c.py').read()) def app_2(): try: exec(open('my_code.py').read()) except: print('积木编程代码执行出错,跳过...') def loop(tt): padog.mainloop() #_thread.start_new_thread(app_1, ()) #_thread.start_new_thread(app_2, ()) #_thread.start_new_thread(loop, ()) #t.init(period=10,mode=Timer.PERIODIC,callback=loop) t.init(period=50, mode=Timer.PERIODIC, callback=OpenMV_Run) padog.gesture(padog.in_pit, padog.in_rol, padog.in_y) padog.speed = 0.045 while True: padog.mainloop() ''' try: OpenMV_Run(0) except: pass '''