Answers for "combobox in python"

0

combobox in python

import tkinter
from tkinter import ttk

window = tk.Tk()
window.geometry('350x250')

ttk.Label(window, text = "Insert_your_text_here:", 
        font = ("Times New Roman", 10)).grid(column = 0,  
                                             row = 15, padx = 10, pady = 25)

my_string = tk.StringVar()
combobox = ttk.Combobox(window, width = 27, textvariable = my_string)
Posted by: Guest on June-09-2021

Python Answers by Framework

Browse Popular Code Answers by Language