From 1800d201dc56742062335f24dab4ed73912f26a2 Mon Sep 17 00:00:00 2001 From: nanotube Date: Wed, 23 Nov 2005 08:19:36 +0000 Subject: [PATCH] just edit the doc comment --- mytimer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mytimer.py b/mytimer.py index 011852e..e6be990 100644 --- a/mytimer.py +++ b/mytimer.py @@ -5,7 +5,8 @@ class MyTimer(Thread): """Call a function after a specified number of seconds. Repeat a specified number of times: Set repetitions to 0 to do this forever (until cancel is called). - t = Timer(30.0, 5, f, args=[], kwargs={}) + Usage: + t = MyTimer(interval, repetitions, function, args=[], kwargs={}) t.start() t.cancel() # stop the timer's action if it's still waiting """ -- 2.45.1