from tkinter import *
langauges = Tk()
listbox = Listbox(langauges)
listbox.insert(1, 'Java')
listbox.insert(2, 'JavaSript')
listbox.insert(3, 'Python')
listbox.insert(4, 'PHP')
listbox.insert(5, 'C++')
listbox.pack()
langauges.mainloop()
from tkinter import *
screen = Tk()
screen.geometry('400x400')
#Colors of a pallette
label_tk = Label(text="A list of colors:")
#Creating a List
color_box = Listbox()
color_box.insert(1,"Red")
color_box.insert(2,"Green")
color_box.insert(3,"Yellow")
color_box.insert(4,"Blue")
label_tk.pack()
color_box.pack()
screen.mainloop()
w = Listbox(master, option=value)