diff options
Diffstat (limited to '')
-rw-r--r-- | parrot_zik/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/parrot_zik/utils.py b/parrot_zik/utils.py index 18b878d..86f52cd 100644 --- a/parrot_zik/utils.py +++ b/parrot_zik/utils.py @@ -1,3 +1,4 @@ +import functools from threading import Lock import gtk @@ -15,10 +16,10 @@ class repeat(object): def start(self, cls, frequency): self.lock.acquire() if not self.id: + @functools.wraps(self.f) def run(): self.f(cls) return True - self.id = gtk.timeout_add(frequency, run) self.lock.release() |