[Tutor] Producing a pop-up on graphics area?
Kent Johnson
kent37 at tds.net
Sat Feb 16 12:50:03 CET 2008
Wayne Watson wrote:
> I want to allow a user who is looking at a graphic area that contains
> an image to be able to right-click on the graphic to produce a menu
> of choices. What's available to do that?
Typically you would install a right-click handler on the graphic area.
The handler pops up the menu. The details depend on what GUI framework
you are using. Here is a Tkinter example (though on my Mac <Button-3>
seems to be the middle button; changing to <Button-2> makes it use
right-click):
http://effbot.org/zone/tkinter-popup-menu.htm
Kent
More information about the Tutor
mailing list