Version 3 of wm iconphoto

Updated 2007-12-19 13:48:34 by LV

[new tk 8.5 command - a pointer to doc and description is needed here]

From [L1 ]:

wm iconphoto window ?-default? image1 ?image2 ...?

This wm subcommand sets the titlebar icon for window based on the named photo images. If -default is specified, this is applied to all future created toplevels as well. The data in the images is taken as a snapshot at the time of invocation. If the images are later changed, this is not reflected to the titlebar icons. Multiple images are accepted to allow different images sizes (e.g., 16x16 and 32x32) to be provided. The window manager may scale provided icons to an appropriate size.

  • On Windows, the images are packed into a Windows icon structure. This will override an ico specified to wm iconbitmap, and vice versa.
  • On X, the images are arranged into the _NET_WM_ICON X property, which most modern window managers support. A wm iconbitmap may exist simultaneously. It is recommended to use not more than 2 icons, placing the larger icon first.
  • On Macintosh, this currently does nothing.