Answers for "button has 2 commands"

6

tkinter give button 2 commands

button = Button(root, text="test", command=lambda:[funct1(),funct2()])
Posted by: Guest on March-22-2020
0

how to add multiple commands to tkinter button

all_commands = lamba: [func1(), func2()]

button = Button(window, text="This is a button", command=all_commands)
Posted by: Guest on July-02-2020

Code answers related to "button has 2 commands"

Python Answers by Framework

Browse Popular Code Answers by Language