python - kivy 相当于 Tkinter after()

标签 python tkinter kivy

将我的应用程序的 UI 从 Tkinter 更改为 Kivy 我无法弄清楚 Kivy 等同于 Tkinter .after() 函数:

Tkinter:

self.after(5000, self.functionX)

基维:

?????

最佳答案

Clock.schedule_once 是你的 friend !

Clock.schedule_once(function_x, 5.0) # like the 5000 ms in your example

关于python - kivy 相当于 Tkinter after(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41036937/

相关文章:

kivy - 在 kivy 中居中多行按钮或标签文本?

python - 根据字符串的一部分查找列表中字符串的索引

python - 有条件地交换 pandas 中的值

python - 无法将变量传递给函数

python - 设置自定义轴值 pyplot

python - 使用Threading时如何关闭后台运行的CMD?

python 动态对象查询

python - 如何在 python GUI TKinter 中通过相同图像标签的另一个进程调用替换正在进行的图像捕获过程

Python + kivy : How to display multi language in one label (Unicode)?

python - Raspberry Pi Python (Kivy) 使用 sudo 时速度极慢