winfo y
Gives the y position of the top edge of a widget in its parent.
winfo y WINDOW
Description
The position is relative to the inner top left corner of the parent. For a toplevel, it is the position on the screen.
Returns
An integer.
Examples
% frame .f -width 40 -height 30
> pack .f
> frame .f.b -width 20 -height 10
> place .f.b -x 5 -y 6
> update
> winfo y .f.b
6
Errors
% winfo y
wrong # args: should be "winfo y window"
-errorcode NONE
% winfo y .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