Hi. I wonder how I can run the code button when you press alt-h. Use underline, but I can not connect.
code: import Tkinter class App: def __init__(self, master): self.root = master b = Tkinter.Button(self.root, text='Hello', underline=0) b.pack() b.bind('<Button-1>', function) def function(event): print 'Ok' master = Tkinter.Tk() app = App(master) master.mainloop() thanks in advance Regards. Cristian AbarzĂșa _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss