winfo height
Gives the height of a widget in pixels.
winfo height WINDOW
Description
The height that the geometry manager gave the widget at the last layout. A widget that has had no layout gives 1. Call update first for the current value.
Returns
An integer.
Examples
% frame .h -height 30 -width 10
> pack .h
> update
> winfo height .h
30
Errors
% winfo height
wrong # args: should be "winfo height window"
-errorcode NONE
% winfo height .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