Python GUI with Tkinter - 9 - Creating Drop Down Menus

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

# Remove the dashed line (- - - - - - - -) above the dropdown list
subMenu = Menu(menu, tearoff=0)

SteveBreese
Автор

did "menu" look like a really weird word to you by the end?

librasaur
Автор

Thank God for the day I subscribed to this channel. Bucky, God Bless You. 

OlubunmiAdewumi
Автор

late to the party here - it's 2020
i think i need to lay down and watch this again :)

mafianoodles
Автор

Happy birthday man, thanks for everything

Blankenship
Автор

This is exactly what I was looking got. You gave me the basics and now I can use them and search for more "advanced" options.

Thanks!

christophershibles
Автор

If your program prints the "ok ok I wont...." right when you run it, be sure you did code and not """"command=doNothing())""". Watch out for the autocomplete that adds a set of parenthesis!

OkaiGabi
Автор

also, to remove that first option that brings the cascade menu to another window:
subMenu = Menu(menu, tearoff=0) <--- this 'tearoff' argument removes the option you want

puraneshi
Автор

Thanks for the great explanations! I feel like tkinter looks crappy at first but after giving it time you really get to see that you shouldn't judge it by how it looks. It has some really awesome features. Like what you just showed here. Thanks a ton.

df
Автор

This was a bit confusing when I first saw it on other guy's channel. New Boton's way is simple and straight forward. Thanks as always.

turboromy
Автор

Just spent an hour wondering why my code wasn't lable does not spell label

ImSoSalty
Автор

this is probably the hardest and most confusing lesson that I had with this Tkinter tutorial with bucky amongst the 14 lessons. Took me almost 2 hours to understand the whole thing and apply it on my own program.

rngeesus
Автор

Why do i feel like menu isn't spelled right after writing it/

takemybacon
Автор

Hey may I ask a question about how I would make a cascading menu that scrolls? I have a menu for a program I am doing that has about 50 different pieces per submenu, and I want to be able to have like an arrow so that it scrolls down. Would you know what I should try to do?

profskitty
Автор

dude i watched many many years later but u still god, i learn different think from u tytytytytyt :)

frat
Автор

+thenewboston I can't get my menu to open in the frame. It open outside the frame at the top of my desktop screen. Any ideas on how to fix this?

kirkchu
Автор

did exactly but it ain't running....
line 13, in <module>
Menu.add_cascade(label="File", menu=subMenu)
TypeError: add_cascade() missing 1 required positional argument: 'self'

lamarsmith
Автор

if you ever want the exit button to work:
subMenu.add_command(label="Exit", command=root.destroy)

nadekang
Автор

if you are on mac and the menu doesn't appear, it's in the very top system menu bar.

juveftc
Автор

Thanks Alot Man Your Videos Still Top in Youtube Until 2019, sorry by my poor english hello world :)

labsystem