beetlebug▾
/

winfo reqwidth

Gives the width that a widget asks for, in pixels.

winfo reqwidth WINDOW

Description

The width that the widget needs for its content and its options, such as -width.

Returns

An integer.

Examples

% frame .rw -width 35
> winfo reqwidth .rw
35

Errors

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

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