The winfo Command
The winfo command has just over 40 operations that return information about a widget or the display. The operations fall into the following categories:
Sending commands between applications.
Family relationships.
Size.
Location.
Virtual root coordinates.
Atoms and IDs.
Colormaps and visuals.
Sending Commands between Applications
Each Tk application has a name that is used when sending commands between applications using the send command, which is described in Chapter 40. The list of Tk applications is returned by the interps operation. The tk appname command is used to get the name of the application, and that command can also be used to set the application name. In Tk 3.6 and earlier, you had to use winfo name . to get the name of ...
Get Practical Programming in Tcl & Tk, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.