Python Tkinter program for Combobox
In this program, you will learn how to create a Tkinter Combobox in Python.
self.data = ("one", "two", "three", "four")
self.cb = Combobox(tk, values=self.data)
self.cb.place(x=60, y=150)
Example: How to create a Tkinter Combobox in Python
from tkinter import *
from tkinter.ttk import Combobox
class Test:
def __init__(self, tk):
self.data = ("one", "two", "three", "four")
self.cb = Combobox(tk, values=self.data)
self.cb.place(x=60, y=150)
tk = Tk()
tk.geometry("600x500")
tk.title("Xiith.com")
tt = Test(tk)
tk.mainloop()