how to give two command to a button in tkinte code example
Example 1: tkinter give button 2 commands
button = Button(root, text="test", command=lambda:[funct1(),funct2()])
Example 2: python tkinter button multiple commands
pythonCopy def combineFunc(self, *funcs):
def combinedFunc(*args, **kwargs):
for f in funcs:
f(*args, **kwargs)
return combinedFunc