Answers for "how to make drop down 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

Code answers related to "how to make drop down in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language