Python Forum

Full Version: command button automaticaly fired
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I create a form and a button with no command.

I create a class that inherit the constructor and add

self.launch_btn.configure(command=self.launch_exam())
But when I run the form, the button fired without cliking on it.

Any ideas plz ?
Get rid of the parenthesis that executes it
self.launch_btn.configure(command=self.launch_exam)
(Jun-16-2019, 06:16 PM)metulburr Wrote: [ -> ]Get rid of the parenthesis that executes it
self.launch_btn.configure(command=self.launch_exam)

Thanks a lot. Spend hours for this Wall Wall