beetlebug▾
/

winfo ismapped

Gives whether a widget is mapped.

winfo ismapped WINDOW

Description

1 when a geometry manager shows the widget and its parent is mapped, after update. A widget that no geometry manager shows gives 0.

Returns

0 or 1.

Examples

% frame .m
> pack .m
> update
> winfo ismapped .m
1

% frame .m2
> winfo ismapped .m2
0

Errors

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

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