Example:
******Your code Below *****
from tkinter import *
root = Tk()
root.title("Cursor in Listbox")
root.geometry("900x550+350+86")
root.config(background="#ADFF2F")
my_label= Label(root, text="Your Listbox Here",
font=("Times", 30, "bold"),bg="#EE7942",relief=SUNKEN)
my_label.pack(pady=15)
my_listbox= Listbox(root, height=12, width=15,bg="#FFD39B",fg="#B23AEE",
bd=10, font=("Helvetica", 20, "bold"),
highlightcolor="white", cursor="hand1")
my_listbox.pack(pady=10)
my_listbox.insert(1,'johny')
my_listbox.insert(2,'Bonna')
my_listbox.insert(3,'Wasif')
my_listbox.insert(4,'Gama')
my_listbox.insert(5,'King')
my_listbox.insert(6,'Kong')
my_listbox.insert(7,'Hasan')
root.mainloop()
********End Code**********
root = Tk()
root.title("Cursor in Listbox")
root.geometry("900x550+350+86")
root.config(background="#ADFF2F")
my_label= Label(root, text="Your Listbox Here",
font=("Times", 30, "bold"),bg="#EE7942",relief=SUNKEN)
my_label.pack(pady=15)
my_listbox= Listbox(root, height=12, width=15,bg="#FFD39B",fg="#B23AEE",
bd=10, font=("Helvetica", 20, "bold"),
highlightcolor="white", cursor="hand1")
my_listbox.pack(pady=10)
my_listbox.insert(1,'johny')
my_listbox.insert(2,'Bonna')
my_listbox.insert(3,'Wasif')
my_listbox.insert(4,'Gama')
my_listbox.insert(5,'King')
my_listbox.insert(6,'Kong')
my_listbox.insert(7,'Hasan')
root.mainloop()
********End Code**********
Post a Comment