the listbox widget is used to display list of options to the user it is used to display the list items to the user we can place only text items in the listbox and all text items contain the same font and color the user can choose one or more items from the list depending upon the configuration the syntax to use the listbox is given below =listbox(parent,options list of possible options is given below sr no options selectbackground description the background color that is used to display the selected text selectmode width xscrollcommand yscrollcommand it is used to determine the number of items that can be selected from the list it can set to browsesinglemultipleextended it represents the width of the widget in characters it is used to let the user scroll the listbox horizontally it is used to let the user scroll the listbox vertically code snippetfrom tkinter import top tk(top geometry(" "lbl label(top,text " list of favourite countries "listbox listbox(toplistbox insert( ,"india"listbox insert( "usa"listbox insert( "japan"listbox insert( "austrelia"#this button will delete the selected item from the list btn button(toptext "delete"command lambda listbox=listboxlistb ox delete(anchor)