winfo pixels
Gives a screen distance in whole pixels.
winfo pixels WINDOW DISTANCE
Description
The same as winfo fpixels, rounded to the nearest integer.
Returns
An integer.
Examples
% winfo pixels . 1i
96
% winfo pixels . 2.6
3
Errors
% winfo pixels . x
bad screen distance "x"
-errorcode NONE
% winfo pixels .nope 1
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