Tkinter tutorial for beginners #5: Combobox, Listbox

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • Tkinter tutorial for complete beginnners. In this part, learn how to use the Tkinter Combobox and the Tkinter Listbox. Learn Tkinter and Tkinter for GUI design. Learn how to launch and create your first GUI for Python programs and desktop applications.
    In this tutorial, you will learn how to create your first Python Graphical User Interface. You will learn about the following widgets: Tkinter Combobox and Tkinter Listbox.
    For more info:
    Install and Setup Tkinter for beginners: • Install and Setup Tkin...
    Playlist link: • Tkinter tutorials
    Timestamps:
    00:00 Introduction and overview
    00:32 Starter code
    01:52 Themed Widgets
    02:55 Combobox - Create a Combobox
    06:02 Combobox - Binding Combobox events to functions
    08:30 Combobox - Setting Combobox value
    09:55 Combox - Setting Combobox to readonly
    10:57 Combobox - Changing Combobox list of values
    12:09 Listbox - Create a Listbox
    16:19 Listbox - Changing Listbox selectmode
    16:57 Listbox - Binding Listbox events to functions
    20:18 Listbox - Change Listbox height
    Socials:
    My email: code.first.io@gmail.com
    Tiktok: / hala.codes
    *************
    *Tags*
    Tkinter tutorial
    Tkinter install
    Tkinter Setup
    Tkinter GUI tutorial
    GUI tutorial Python
    Graphical User Interface Python
    Python tutorial
    Tkinter widgets
    Tkinter Combobox
    Tkinter Listbox

Комментарии • 9

  • @kevinwright7931
    @kevinwright7931 4 месяца назад

    I love how simple you make it. Some other take you around the block when you need to cross the street. It was very useful for me. Thank you so much.

  • @PA-bu5cs
    @PA-bu5cs Год назад

    I love the way you say "ok" :)🙃

  • @der_bar2772
    @der_bar2772 Год назад

    combo["values"] = 😍 thank you for these

  • @coffeetec_de
    @coffeetec_de 2 года назад +1

    Nicely explained, thank you

  • @mahdikhosravi8164
    @mahdikhosravi8164 Год назад

    extremely good

  • @اقراوتعلم-ح3ط
    @اقراوتعلم-ح3ط Год назад

    Good

  • @dedpihto680
    @dedpihto680 2 года назад

    what good? tkinter or pyqt5?

  • @its_code
    @its_code 2 года назад +1

    👍😍😍😍😊😘

  • @kychemclass5850
    @kychemclass5850 Год назад

    Thank you so much for another excellent tutorial. Sadly I can't get my the bind bit working.. The window and selectable window are fine, but when a selection was made nothing new happens. I've tried in Thonny and pycharm.
    Any advice? - UPDATE: The error below was that I should have written ComboboxSelected (!!), not ComboboxSelectiobn. Tq..
    def RunMyUserFn(event):
    my_Label = Label(root, text=sel.get()).pack() # label doesn't appear in the window
    print("An event was noted") # no console output occurs.
    cb1.bind("", RunMyUserFn)
    sel = tk.StringVar() # 'sel' is a variable to hold the option clicked on
    sel.set(MPA_list[0]) # set first element in list as default combobox display
    cb1 = ttk.Combobox(root, values=MPA_list, width=15, textvariable=sel)
    cb1.bind("", RunMyUserFn)