beetlebug▾
/

winfo screenheight

Gives the height of the screen in pixels.

winfo screenheight WINDOW

Description

The height of the screen of the toplevel of WINDOW.

Returns

An integer.

Examples

% expr {[winfo screenheight .] > 0}
1

Errors

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

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