tkinter multiple commands in a button code example
Example 1: tkinter give button 2 commands
button = Button(root, text="test", command=lambda:[funct1(),funct2()])
Example 2: how to give two commands tkinter
all_commands = lambda: [func1(), func2()]
button = Button(window, text="This is a button", command=all_commands)