O'Reilly logo

Tcl/Tk in a Nutshell by Paul Raines, Jeff Tranter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

wm

wm operation window [arg arg...]

The wm command communicates with the window manager to control such things as window titles, geometry, and state. All window managers are different and may not honor all of Tk's requests. The possible operations are:

wm aspect window [minNumber minDenom maxNumer maxDenom]

Request that the window manager enforce a range of acceptable aspect ratios for window. The aspect ratio of window (width/length) must lie between minNumber/minDenom and maxNumer/maxDenom. If all the aspect arguments are specified as empty strings, any existing constraint is removed. If the aspect arguments are omitted, the current values are returned as a Tcl list, which will be empty if there is no constraint.

wm client window [name]

Store in window's WM_CLIENT_MACHINE property the value name, which should be the name of the host on which the application is running. If name is not given, the last name set for window is returned. If name is the empty string, the WM_CLIENT_MACHINE property for window is deleted.

wm colormapwindows window [windowList]

Store in window's WM_COLORMAP_WINDOWS property the value windowList, which should be a complete list of the internal window pathnames within window whose colormaps differ from their parents. If windowList is not given, the current setting is returned.

wm command window [cmdLine]

Store in window's WM_COMMAND property the value cmdLine, which should be a proper list containing the words of the command used to invoke the application. If ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required