[Tkinter] command button automaticaly fired - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: [Tkinter] command button automaticaly fired (/thread-19177.html) |
command button automaticaly fired - kferhat - Jun-16-2019 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 ? RE: command button automaticaly fired - metulburr - Jun-16-2019 Get rid of the parenthesis that executes it self.launch_btn.configure(command=self.launch_exam) RE: command button automaticaly fired - kferhat - Jun-16-2019 (Jun-16-2019, 06:16 PM)metulburr Wrote: Get rid of the parenthesis that executes it Thanks a lot. Spend hours for this |