Dropdown Menus With TKinter - Python Tkinter GUI Tutorial #18

Dropdown Menus With TKinter - Python Tkinter GUI Tutorial #18

Codemy.com

5 лет назад

150,018 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

International Football Club
International Football Club - 22.08.2023 17:44

thanks sir for amazing tutorial🎉❤

Ответить
pikadroo
pikadroo - 07.08.2023 21:29

Code is wrong all I get it

TypeError: 'str' object is not callable

Ответить
Nicolás De Gaudenzi
Nicolás De Gaudenzi - 01.08.2023 08:22

Very useful, thanks!!

Ответить
Md. Fahmid Bin Mostafa15-4233
Md. Fahmid Bin Mostafa15-4233 - 18.06.2023 21:26

What's the main difference between OptionMenu and Combobox?

Ответить
Testy Cool
Testy Cool - 01.06.2023 00:51

In python's tkinter module. Does OptionMenu not have a font= argument?

Ответить
Amit Patel
Amit Patel - 08.04.2023 04:28

Keep font size large, can't read on mobile phone

Ответить
Romy
Romy - 20.03.2023 00:09

just for that simple pulldown menu we need so many lines of codes?

personally speaking, it is surely not RAD.. (rapid app development).

Ответить
kumar raunak
kumar raunak - 01.03.2023 12:53

Hi!
How to add scrollbar in drop-down.

Ответить
Eduardo Murphy Pérez
Eduardo Murphy Pérez - 23.02.2023 05:04

does anybody knows if dropdown menus can be enabled/disabled? I am looking everywhere, but can't find the solution.

Ответить
mihnearazvan1
mihnearazvan1 - 20.02.2023 14:37

Thanks for the videos, really great! Just a beginner question: can I limit the selection to just one and add an "OK" button to close the menu once selection finished? Thank you!

Ответить
Shreya Menon💜
Shreya Menon💜 - 04.02.2023 14:56

Hii...it's not showing the option i select...what should I do

Ответить
Jay´s Place
Jay´s Place - 31.01.2023 16:25

how can i deactivate the dropdownmenu whilst the script is running? i want to have a "Submit Answer"-Button, that makes it, so that after clicking it you can´t choose something else from the menu, but i am new to programming, so i have no idea how that works. Help would be appreciated :)

Ответить
We Are Naughty
We Are Naughty - 05.01.2023 13:50

Is it possible to enable scrollbar for long dropdown (I mean having multiple distinct dropdown). Any lead will be appreciated.

Ответить
Brody Dentinger
Brody Dentinger - 25.11.2022 04:00

Does anyone know why this won't work with grid instead of pack

Ответить
emiiils
emiiils - 03.11.2022 22:40

Thanks

Ответить
Eric Hudson
Eric Hudson - 26.10.2022 17:43

Love this video! I used this concept to create a workout app. Is there anyway I can make the selected word from the dropdown menu output something else? So if I click "Monday", it would output a to-do list for Monday

Ответить
Paul
Paul - 13.08.2022 17:07

When the window closes the selection disappears. Is there a way to store the selection on the optionmenu, maybe with a 'save & close' button so when the GUI is opened back up the selections are all still there? Then the selections can be cleared from a 'clear' button when the user is finished with their selections.

Ответить
Shoshana Snow
Shoshana Snow - 11.07.2022 23:35

Thanks for this super helpful video! I was wondering if there is a way to add a feature where the user can search through the drop down menu options?

Ответить
Rishi A.R
Rishi A.R - 05.07.2022 22:22

how to create a dropdown with a dropdown..........and just consider that if there is 4 values in the subdropdown ......if i click on one of that value i need to display that value in the main display box

Ответить
Safwan Khan
Safwan Khan - 15.06.2022 07:41

out of curiosity, which videos prior to this one in ur playlist talk about (in depth/remotely) about string var. it seems to be quite an interesting concept and would like to better understand it

btw, great videos man. keep it up with ur channel :)

Ответить
Linuxuser1234
Linuxuser1234 - 12.04.2022 16:12

how would you change the the coordinates i tried clicked.grid and place(x=y=) but tbtat didnt work

Ответить
hanna
hanna - 28.03.2022 07:50

would anyone know how to store a specific string or float number in a selection in the list and then display that??

Ответить
Pav
Pav - 23.03.2022 13:11

Could I set a drop down menu option to open another dropdown menu on the submission? (1st menu :What direction are you going? submit "towards city" and once that is submitted through the click, a second dropdown menu opens "Where would you like to go in the city?"

Ответить
Фёдор Максименков
Фёдор Максименков - 17.02.2022 17:19

That's fine, but how to make selected element ALIGNED LEFT. OptionMenu doesn't have "anchor" attribute.

Ответить
Infinite Space
Infinite Space - 14.02.2022 22:39

Is it possible to create arrows linking to other options in dropdown menus?

Ответить
Artemis Srijan
Artemis Srijan - 10.02.2022 13:38

What a journey this was, I learnt a lot!

Ответить
Ohadiyorummelih
Ohadiyorummelih - 28.01.2022 10:28

Thanks man!

Ответить
chris gettier
chris gettier - 17.01.2022 02:46

NICE

Ответить
Alex K
Alex K - 13.01.2022 13:28

Could I put a Calendar inside a dropdown menu? I want to have field where a user can pick a date on a calendar. I have a calendar but it ruins the structure of my grid so I was wondering if I could put it in a menu, so the grid isn't shifted

Ответить
JAY-R E. MITRA
JAY-R E. MITRA - 06.01.2022 10:46

We just started our first project in class and I wanna use this dropdown but Im having problems because it doesn't appear and that PIL is not defined. we were only taught about import messagebox

Ответить
Hari Prasath Siva
Hari Prasath Siva - 05.01.2022 08:29

Thank you

Ответить
Akshay Balaji.S
Akshay Balaji.S - 30.12.2021 10:31

what should i do if i want the selection to call our a function?

Ответить
Adrian
Adrian - 30.12.2021 01:02

I have a few questions. I’m making a flashcard project, I followed your tutorial for the language one but to take it further I want to use SQLite to store the words. I’ve already created my table how do I call the contents for it to be displayed on the GUI of the flashcard.

Also I have a menu but when I click between the menu the contents of it gradually go further and further down. How do I make it stay stationary when I switch between the menu items

Ответить
MITHUN M
MITHUN M - 26.12.2021 16:18

can we bind a optionmenu with another optionmenu

Ответить
Till Ebeling
Till Ebeling - 23.12.2021 22:46

I'm working the first time with Tkinter and Python to create a GUI for a project and your tutorials are a great help! Love it!

Ответить
javier Alarcon
javier Alarcon - 03.12.2021 05:32

How can I use the value selected by the drop down as an input into other functions? Like printing option out on console and not just TK..

Ответить
Elesvan JL
Elesvan JL - 16.11.2021 22:38

Thanks for the videos! Realy usesfulls

Ответить
matt reeves
matt reeves - 01.11.2021 19:52

Great training and easy to follow video thanks.
i know this is an older video but im after a bit of guidance. I have multiple optionmenus and im trying to have it so only the first is active and the rest are disabled till the corresponding optinmenu has been answered is this possible?

Ответить
None
None - 21.09.2021 11:26

Amazing tutorial

Ответить
Allan Galesco
Allan Galesco - 13.09.2021 21:10

This course is more than 2 years old and its still great... I couldnt find the place to get all your courses.. if you see this message please send me some instructions coz I really wanna get your tkinter course.. specially those about tkinter with database

Ответить
Dylan Campbell
Dylan Campbell - 21.08.2021 04:39

I love you for making these videos

Ответить
Skirby
Skirby - 14.07.2021 19:28

Thanks! im making a settings menu that lets me set colors for my app, and i was trying to idiot proof it

Ответить
Bhavishyaa
Bhavishyaa - 05.07.2021 19:33

Hi, I tried out this program. I have a program and the dropdown box appears on another window. I want it to appear on the same window. But the rest is working out perfectly, is there any answer to this?

Ответить
Bruno Henrique Manfrin Tormem
Bruno Henrique Manfrin Tormem - 21.06.2021 18:18

hello, how are u? hey can u help me? i need to disable a textbox with a checkbox, this is possible?

Ответить
mee
mee - 07.06.2021 07:35

Option [0] and *option should be concern.

Ответить
Whitefang 165
Whitefang 165 - 04.04.2021 07:46

Is it possible to run a function each time the menu is updated? (Whenever a user selects something from a menu a function is called)

edit: Nevermind figured it out. To achieve this you can simply add the command attribute to the option menu.
When ever the drop down is interacted with it will call the function parsing in the selected value.


dropdown = OptionMenu(root, selected_item, *items_list, command=display_selection)

def display_selection(selected_item):
print(selected_item)

Ответить
Sharathsoorya 19BCS050
Sharathsoorya 19BCS050 - 02.04.2021 13:09

How to enable scroll view within a dropdown box sir

Ответить
elderlich
elderlich - 24.03.2021 08:34

very helpful for making hack client drop down menu

Ответить