Answers for "dropdwon in 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

Python Answers by Framework

Browse Popular Code Answers by Language