Changing the user interface of my application from Tkinterto KivyI cannot understand the Kivy equivalent of the Tkinter function .after():
Tkinter
Kivy
.after()
Tkinter:
self.after(5000, self.functionX)
Kivy:
?????
Clock.schedule_once - your friend!
Clock.schedule_once
Clock.schedule_once(function_x, 5.0) # like the 5000 ms in your example
You can use the Clock object , which allows you to schedule a callback just like the Tkinter method .after.
.after
Clock.schedule_interval(my_callback, 0.5)
Source: https://habr.com/ru/post/1663215/More articles:Sprite Kit - Sometimes a ball disappears from the screen? - swiftThe ghost does not work - pythonLoading configuration from the database before Angular 2 applications start using AoT - angularWhy does the battery in Stream :: reduce the BiFunction and not the BinaryOperator as a combiner? - javaTSQL - group and island dates - datetimeWhy am I getting an error message? - pattern-matchingKeyboard hides dropdown menu AutoCompleteTextView - androidИспользование типичного именованного типа в API Blueprint на Apiary.io - apiary.ioReplace the square bracket operator of a string? - overrideHow to restore a session in a tensor flow? - pythonAll Articles