beetlebug▾
/

winfo visualid

Gives the identifier of the visual of a widget.

winfo visualid WINDOW

Description

ztk gives 0x21, the value of a true color visual of X11.

Returns

A hexadecimal string.

Examples

% winfo visualid .
0x21

Errors

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

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