Example:
******Your code Below *****
from tkinter import *
root = Tk()
root.title("Border 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=25, width=60,bg="#FFD39B", bd=20)
my_listbox.pack(pady=10)
root.mainloop()
root = Tk()
root.title("Border 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=25, width=60,bg="#FFD39B", bd=20)
my_listbox.pack(pady=10)
root.mainloop()
Post a Comment