Answers for "tkinter multiple commands in a button"

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 give two commands tkinter

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

button = Button(window, text="This is a button", command=all_commands)
Posted by: Guest on May-04-2021

Code answers related to "tkinter multiple commands in a button"

Python Answers by Framework

Browse Popular Code Answers by Language