Skip to content

Commit

Permalink
Drop Down
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronish authored and Ronish committed Apr 27, 2021
1 parent f3a777b commit e0383be
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Drop Down Menu.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from tkinter import *
from PIL import ImageTk, Image
from tkinter import messagebox
from tkinter import filedialog

root = Tk()

def show():
myLabel = Label(root, text=clicked.get()).pack()

#Making options into list
# options = ["Monday",
# "Tuesday",
# "Wednesday",
# "Thursday",
# "Friday"
# ]

clicked = StringVar()
clicked.set("Days")

drop = OptionMenu(root, clicked,"Monday", "Tuesday","Wednesday", "Thursday","Friday")
drop.pack()


myButton = Button(root, text= "Show Selection", command=show).pack()

mainloop()

0 comments on commit e0383be

Please sign in to comment.