Tuesday, August 4, 2020

Write a Program Add a combobox widget in Python.

 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

ComboBox widget

Combo box widget in Python.


No comments:

Post a Comment

Please do not any spam link in Comment Box