tk/popup

Post a popup menu

(tk/popup #<widget> x y ?entry?)
This procedure posts the menu #<widget> at a given position on the screen and configures Tk so that the menu and its cascaded children can be traversed with the mouse or the keyboard.

#<widget> is a menu widget and x and y are the root coordinates at which to display the menu.

If entry is omitted, the menu's upper left corner is positioned at the given point. Otherwise entry gives the index of an entry in menu and the menu will be positioned so that the entry is positioned over the given point.


Corresponding Tcl/Tk command:

tk_popup ...

© Author | Home | Sitemap