There are a number of widgets which you can put in your tkinter application. Some of the major widgets are explained below:
Button:
To add a button in your application, this widget is used.
The general syntax is:
mybutton=Button(win, option=value)
win is the parameter used to represent the parent window.
There are number of options which are used to change the format of the Buttons. Number of options can be passed as parameters separated by commas. Some of them are listed below.
Example:
from Tkinter import*
win=Tk()
win.title('My First GUI')
mybutton=Button(win,text="Click me")
mybutton.pack()
win.mainloop()