Nov-10-2021, 07:57 PM
I am confused by the 'command' argument for buttons. I have the following button defined:
submitButton=tk.Button(top,text='Submit',command=submitData(top)).grid(row=rw,column=2,pady=5,sticky=tk.W)The command (submitData) is being executed immediately upon display before the button is clicked. The when I click the button, nothing is executed. What am I doing wrong? TIA