[英]kivy Equivalent to Tkinter after()
將我的應用程序的UI從Tkinter
更改為Kivy
我無法弄清楚Kivy等同於Tkinter .after()
函數:
Tkinter的:
self.after(5000, self.functionX)
Kivy:
?????
Clock.schedule_once
是你的朋友!
Clock.schedule_once(function_x, 5.0) # like the 5000 ms in your example
您可以使用Clock對象,它允許您像Tkinter .after
方法一樣安排回調。
Clock.schedule_interval(my_callback, 0.5)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.