beetlebug▾
/

menu post

Shows the menu at a point of the screen.

PATHNAME post X Y ?INDEX?

Description

Runs -postcommand, and then shows the menu with its top left corner at X,Y in pixels of the screen. In Tk, INDEX names the entry to put at X,Y. tk_popup uses post for a popup menu.

Returns

An empty string.

Examples

% menu .po -tearoff 0
> .po add command -label Copy
> .po post 100 100

Errors

% menu .po2; .po2 post
wrong # args: should be ".po2 post x y ?index?"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1

See also