Search code examples
pythontkinterkivy

kivy Equivalent to Tkinter after()


Changing the UI of my application from Tkinter to Kivy I cannot figure out the Kivy equivalent to Tkinter .after() function:

Tkinter:

self.after(5000, self.functionX)

Kivy:

?????

Solution

  • Clock.schedule_once is your friend !

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