1 pythonCopyimport tkinter as tk
2
3OptionList = [
4"Aries",
5"Taurus",
6"Gemini",
7"Cancer"
8]
9
10app = tk.Tk()
11
12app.geometry('100x200')
13
14variable = tk.StringVar(app)
15variable.set(OptionList[0])
16
17opt = tk.OptionMenu(app, variable, *OptionList)
18opt.config(width=90, font=('Helvetica', 12))
19opt.pack()
20
21app.mainloop()