Update of /cvsroot/freevo/kaa/base/src/notifier
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21797/src/notifier
Modified Files:
callback.py
Log Message:
add variable to prevent timer from restart when active
Index: callback.py
===================================================================
RCS file: /cvsroot/freevo/kaa/base/src/notifier/callback.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** callback.py 14 Jul 2005 08:40:49 -0000 1.9
--- callback.py 17 Jul 2005 09:04:54 -0000 1.10
***************
*** 194,199 ****
--- 194,206 ----
class Timer(NotifierCallback):
+ def __init__(self, callback, *args, **kwargs):
+ super(Timer, self).__init__(callback, *args, **kwargs)
+ self.restart_when_active = True
+
+
def start(self, interval):
if self.active():
+ if not self.restart_when_active:
+ return
self.unregister()
self._id = notifier.addTimer(interval, self)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog