beetlebug▾
/

wm title

Gives or sets the title of a toplevel.

wm title WINDOW ?TITLE?

Description

The title shows in the title bar of the window and in the list of windows of the platform. The default title of . is the name of the application, and the default title of another toplevel is its name.

Returns

The title, or an empty string.

Examples

% toplevel .t
> wm title .t Notes
> wm title .t
Notes

% toplevel .t2
> wm title .t2
t2

Errors

% wm title .t a b
wrong # args: should be "wm title window ?newTitle?"
-errorcode NONE

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztk 1.0.0-beta.1