Python Tkinter program for Listbox
In this program, you will learn how to create a Tkinter Listbox in Python.
self.listbox = Listbox(tk)
self.listbox.place(x=110, y=100)
self.listbox.insert(0, "C")
Example: How to create a Tkinter Listbox in Python
from tkinter import *
class Test:
def __init__(self, tk):
self.l1 = Label(tk, text="Your Favourite Programming language")
self.l1.place(x=100, y=10)
self.listbox = Listbox(tk)
self.listbox.place(x=110, y=100)
self.listbox.insert(0, "C")
self.listbox.insert(1, "C++")
self.listbox.insert(2, "Java")
self.listbox.insert(3, "Python")
tk = Tk()
tk.title("Xiith.com")
tk.geometry("600x500")
tt = Test(tk)
tk.mainloop()