beetlebug▾
/

winfo pointery

Gives the y position of the pointer on the screen.

winfo pointery WINDOW

Description

The position comes from the last pointer event of the application. With no pointer event, the result is 0.

Returns

An integer.

Examples

% string is integer [winfo pointery .]
1

Errors

% winfo pointery
wrong # args: should be "winfo pointery window"
-errorcode NONE

% winfo pointery .nope
bad window path name ".nope"
-errorcode NONE

Facts

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