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()


********End Code**********

Write Down Code Your Code Editor. To show Your Output. If Use Pycharm Press Shift+F10 and Show Your Output.







Enjoy........





Post a Comment

Previous Post Next Post