Combo box widget in Python.
from tkinter import *
from tkinter.ttk import *
window = Tk()
window.title("Welcome to Coding Block!")
window.geometry('350x200')
comb = Combobox(window)
comb['values']= ("Python","C++" , "Android", "C", "Java", "JavaScript")
comb.current(0)
comb.grid(column=0, row=0)
window.mainloop()
OUTPUT
No comments:
Post a Comment
Please do not any spam link in Comment Box