men c3 b9 a tendina tkinter

Solutions on MaxInterview for men c3 b9 a tendina tkinter by the best coders in the world

showing results for - "men c3 b9 a tendina tkinter"
Laurie
24 Oct 2018
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()