From 0e12c8af8613869d5d6b08e1295d082d0f2fa132 Mon Sep 17 00:00:00 2001 From: Zen-CODE Date: Sat, 16 Nov 2013 01:49:11 +0200 Subject: [PATCH] doc: revisions to clock.py (2) --- kivy/clock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kivy/clock.py b/kivy/clock.py index 6e9dd538a..a6a22753a 100644 --- a/kivy/clock.py +++ b/kivy/clock.py @@ -57,7 +57,7 @@ to write a short function that does accept dt. For Example:: class Foo(object): def start(self): - Clock.schedule_interval(self.callback) + Clock.schedule_interval(self.callback, 0.5) def callback(self, dt): print('In callback') @@ -437,7 +437,8 @@ class ClockBase(_ClockBase): return ev def schedule_once(self, callback, timeout=0): - '''Schedule an event in seconds. + '''Schedule an event in seconds. If is unspecified + or 0, the callback will be called after the next frame is rendered. .. versionchanged:: 1.0.5 If the timeout is -1, the callback will be called before the next