Fre*_*Fox 4 python tkinter kivy
将我的应用程序的UI更改Tkinter为KivyI无法弄清楚Kivy等效于Tkinter .after()函数:
Tkinter的:
self.after(5000, self.functionX)
Run Code Online (Sandbox Code Playgroud)
Kivy:
?????
Run Code Online (Sandbox Code Playgroud)
Clock.schedule_once 是你的朋友 !
Clock.schedule_once(function_x, 5.0) # like the 5000 ms in your example
Run Code Online (Sandbox Code Playgroud)