Tkinter Button widget

Shankar Iyer (siyer@Princeton.EDU) siyer at Princeton.EDU
Thu Jul 14 20:53:31 CEST 2005


Hi,

     I have another Tkinter-related question.  At the beginning of my program, a tkinter window is created with six buttons.  Each of these buttons is assigned a function that should be executed only when the button is pressed.  However, it seems that these functions are all executed once when the button widgets are first created.  Why is this the case and how do I prevent this from happening?

Shankar




More information about the Python-list mailing list