Changeset - 4072d93f02c5
[Not reviewed]
default
0 1 0
Drew Perttula - 18 years ago 2007-03-18 23:45:41
drewp@bigasterisk.com
musictime was piling on more and more timers every time you pressed a key
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/musictime
Show inline comments
 
@@ -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('<KeyPress>', print_time)
 
        self.timelabel.bind('<1>', print_time)
0 comments (0 inline, 0 general)