tkinter w button code example
Example 1: tkinter give button 2 commands
button = Button(root, text="test", command=lambda:[funct1(),funct2()])
Example 2: how to create a button python
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def helloCallBack():
tkMessageBox.showinfo( "Hello Python", "Hello World")
B = Tkinter.Button(top, text ="Hello", command = helloCallBack)
B.pack()
top.mainloop()