Answers for "drop down selected tkinter"

3

dropdown in tkinter

from Tkinter import *

master = Tk()

variable = StringVar(master)
variable.set("one") # default value

w = OptionMenu(master, variable, "one", "two", "three")
w.pack()

mainloop()
Posted by: Guest on November-06-2020

Code answers related to "drop down selected tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language