change text of a Tkinter Button by clicking it
namenobodywants at gmail.com
Thu Sep 29 07:47:49 CEST 2011
(how) can you change the text of a Tkinter Button by clicking it?
def click(index): return lambda: buttons[index].text = 'hello'
buttons = [Button(root,command=click(index)) for index in
only with an attribute that Buttons actually have. sorry to have to
ask such a see-spot-run question. thanks if you can help.
More information about the Python-list