Python GUI Tutorial - 29 - Combobox - part 2

preview_player
Показать описание
in This video, you'll learn how we can create combobox in Python Tkinter.
To create a combobox in tkinter we have to import ttk.

example -

from tkinter import *

def print_me():
print(value)

root = Tk()

v = ["hello","hi"]
combo = Combobox(root, values=v, width=15)

button = Button(root, text="print", command=print_me).pack()

------------------------------------------------------------------

I'm sure your queries like -
- How to get value from tkinter combobox?
- How to fetch value from tkinter combobox?

have been solved.

If you have any problem related to this video then please comment below. Thanks
Рекомендации по теме
Комментарии
Автор

sir could you please you make a video on test series for tkinter topic

rohitbharti
Автор

How Can we get values from more then one combo box on same button click ?

himanshukhanna
Автор

I've always been using that same bullshit like StringVar() and IntVar()...but thank you very much for solving a great problem for me

hikikomori
Автор

Meri shirt ke 2 button toot gaye hai. mujhe bhi bna do 2 button.

manishsharmatnt
Автор

Arey tum Har video mein button ko pack karna kaise bhool jaate ho yaar? 😂😂😂🤣🤣🤣

SuplexCityF
visit shbcf.ru