combobox in python

Solutions on MaxInterview for combobox in python by the best coders in the world

showing results for - "combobox in python"
Adreanna
04 Feb 2018
1import tkinter
2from tkinter import ttk
3
4window = tk.Tk()
5window.geometry('350x250')
6
7ttk.Label(window, text = "Insert_your_text_here:", 
8        font = ("Times New Roman", 10)).grid(column = 0,  
9                                             row = 15, padx = 10, pady = 25)
10
11my_string = tk.StringVar()
12combobox = ttk.Combobox(window, width = 27, textvariable = my_string)