changeset 305:4072d93f02c5

musictime was piling on more and more timers every time you pressed a key
author Drew Perttula <drewp@bigasterisk.com>
date Sun, 18 Mar 2007 23:45:41 +0000
parents 5f9cf6174e62
children 41830567a8d0
files bin/musictime
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/musictime	Sun Mar 18 23:44:54 2007 +0000
+++ b/bin/musictime	Sun Mar 18 23:45:41 2007 +0000
@@ -27,7 +27,7 @@
             relief='raised', width=10, padx=2, pady=2, anchor='w')
         self.timelabel.pack(expand=1, fill='both')
         def print_time(evt, *args):
-            self.update_time()
+            self.timevar.set(self.get_music_time())
             print self.timevar.get(), evt.keysym
         self.timelabel.bind('<KeyPress>', print_time)
         self.timelabel.bind('<1>', print_time)