Right Click Menu Popups With Tkinter - Python Tkinter GUI Tutorial #137

preview_player
Показать описание
In this video I'll show you how to create a Right-Click menu popup with Tkinter.

We've looked at regular menu's with Tkinter in the past, but in this video I want to show you how to create a menu that pops up with a right mouse click anywhere on our app.

We'll do this by creating a normal menu, but not packing it to the screen. Instead we'll create a right click binding that fires an event that uses the tk_popup() function to pop up the menu.
Рекомендации по теме
Комментарии
Автор

▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My YouTube Channel:
▶️ See More At: ✅ Join My Facebook Group:
▶️ Get The Code

Codemycom
Автор

Thanks for the videos man, I have watched near all of them and sometimes even come back to them if I have forgotten something!

jesterlw
Автор

hello I'm trying to build a start menu and these menus seem to drop down instead of up like the start menu for windows does. Do you know how to get a "drop up" menu with submenues? Do you have a recommendation for a tutorial I could see? Thank you for these videos I think you are the clearest and easiest to follow of all the other youtube instructors I have seen.

billielynploof
Автор

I usually not comment but always follow your video

creatur
Автор

thank you very much... you are very smart

tojoeinstein
Автор

Great videos! I wonder if it would be possible istead of the menu pop up on when right click could be replaced bya listbox with multiple choises with the same procedure...Thanks a lot!

stefanosstavroulis
Автор

Sir, for our image viewing app, Can we make a small frame where the person can drag and drop an image file to view an image.

cmputerprgrammer
Автор

Thank You!! Was waiting for this desperately... And was wondering... do you type the code twice, first one to show the output and second one for recording?? And is there a command in tkinter to destroy all windows which are open?

ameyanand
Автор

thanks, a didactic video and very useful.

DAX-
Автор

Hello! Is there an option to open another menu when you hover to a menu? Like in some programs a small triangle facing right will be there and when you hover on it another menu opens

ameyanand
Автор

Is it possible to modify the default menu pop up you get when right clicking title bar in tkinter. Is it is possible to add another option to that menu bar. This menu bar already has restore, move, size, minimum, maximize and close options

luisperez
Автор

Hey john love ur videos,
How do u learn all this about tinter? Like where did u get this from?

MagicByIzzy
Автор

how to do an if inside the bind? for example: Button-3 and Button-2. so, how to put the two choices

ramehharmouch
Автор

2:38 I am on Ubuntu (or Linux) and you cannot do root.quit() because then it automatically executes it when you have not yet activated it.

hillybankok
Автор

Please wanna know how to get the element once it has been selected.

jonasak
Автор

Please try to add the suitable links which are required for the video.And try to add how to do the Code and Useful things.

pandipatipavan
Автор

how to buy curses with coupon code?
I do not see option like this. Do you have some video ?

moris
Автор

How to add Cut, copy and paste to right click menu?

grahampawar
Автор

trying to add a menu to my appJar program (It's a tkinter wrapper with tkinter compatibility) and it's not working. I'm not sure how to fix it, and I don't want to rewrite my code from scratch in tk, is anyone familiar with appJar? Any reason why this wouldn't work if the "<Button-3>" event was bound to a Tab Frame?

SamuelLoy
Автор

When I wrote this example using my Mac, I found that I had to use <Button-2> instead to get it right.

cjli
visit shbcf.ru