beetlebug▾
/

winfo cells

Gives the count of cells in the colormap of a widget.

winfo cells WINDOW

Description

ztk draws with true color and has no colormap. The result is 256, the value of a true color visual of 24 bits on X11.

Returns

An integer.

Examples

% winfo cells .
256

Errors

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

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