- (tk/wm 'positionfrom #<widget> ?who?)
- If who is specified, it must be either program or user, or an abbreviation of one of these two. It indicates whether #<widget>'s current position was requested by the program or by the user. Many window managers ignore program-requested initial positions and ask the user to manually position the window; if user is specified then the window manager should position the window at the given place without asking the user for assistance. If who is specified as an empty string, then the current position source is cancelled. If who is specified, then the command returns an empty string. Otherwise it returns user or program to indicate the source of the window's current position, or an empty string if no source has been specified yet. Most window managers interpret ``no source'' as equivalent to program. Tk will automatically set the position source to user when a tk/wm geometry command is invoked, unless the source has been set explicitly to program.
© Author
| Home
| Sitemap
|