beetlebug▾
/

winfo pointerxy

Gives the x and the y position of the pointer on the screen.

winfo pointerxy WINDOW

Description

The same values as winfo pointerx and winfo pointery, in one list.

Returns

A list of two integers.

Examples

% llength [winfo pointerxy .]
2

Errors

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

% winfo pointerxy .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