how to make a button in python tkinter code example
Example 1: how to find the text inside button in tkinter
my_text = my_button.cget('text')
Example 2: button tkinter
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()