beetlebug▾
/

winfo screenmmwidth

Gives the width of the screen in millimeters.

winfo screenmmwidth WINDOW

Description

The value comes from the size in pixels and the pixels for each millimeter of ztk.

Returns

An integer.

Examples

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

Errors

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

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