[Tkinter-discuss] Use underline
craf
prog at vtr.net
Wed Dec 29 17:30:36 CET 2010
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
More information about the Tkinter-discuss
mailing list