# HG changeset patch # User Drew Perttula # Date 2007-03-18 23:45:41 # Node ID 4072d93f02c533cf437b3c5b9bb484f9967d83e8 # Parent 5f9cf6174e62656a1a3b15c882bf46d27cd3c068 musictime was piling on more and more timers every time you pressed a key diff --git a/bin/musictime b/bin/musictime --- a/bin/musictime +++ b/bin/musictime @@ -27,7 +27,7 @@ class MusicTimeTk(tk.Frame, MusicTime): 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('', print_time) self.timelabel.bind('<1>', print_time)