Answers for "create a dropdown list in python"

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 "create a dropdown list in python"

Python Answers by Framework

Browse Popular Code Answers by Language