It offers a list to the user from which the user can accept any number of options.
The general syntax is:
lb = Listbox(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 widget. 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 List Box')
win.geometry(350x252')
lb=Listbox(win)
lb,insert(1,'Python')
lb,insert(2,'Ruby')
lb,insert(3,'Java')
lb,insert(4,'C++')
lb,insert(4,'Any Other')
lb.pack()
win.mainloop()