tkinter give button 2 commands
button = Button(root, text="test", command=lambda:[funct1(),funct2()])
tkinter give button 2 commands
button = Button(root, text="test", command=lambda:[funct1(),funct2()])
how to add multiple commands to tkinter button
all_commands = lamba: [func1(), func2()]
button = Button(window, text="This is a button", command=all_commands)
how to add multiple commands to tkinter button
#Define a command
yummy=0
def all_commands:
print("burgers")
yummy+=1
button = Button(window, text="Hello", command=all_commands)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us