massagefoki.blogg.se

Winfo dresses
Winfo dresses












winfo dresses

Returns 1 if win is mapped onto the screen. Returns the list of children widgets of win. Table 41-6 summarizes these winfo operations: The last two indicate the widget is embedded into a canvas or text widget. Examples include pack, place, grid, canvas, and text. This returns the name of the geometry manager command. The winfo manager operation tells you what geometry manager is controlling the placement of the window. Note that winfo ismapped is true for a widget that is managed by a geometry manager, but if the widget's top-level window is not mapped, then the widget is not viewable. You can test for the existence of a window with winfo exists, and whether or not a window is mapped onto the screen with winfo viewable. The winfo class operation returns this information. The parent of the main window is null (i.e., an empty string).Ī widget is also a member of a class, which is used for bindings and as a key into the resource database.

winfo dresses

The winfo children operation returns the children of a window, and the winfo parent operation returns the parent. The Tk widgets are arranged in a hierarchy, and you can use the winfo command to find out about the structure of the hierarchy. Returns the list of registered Tk applications on the same display as win. tk appname ? newname ?Īlso returns the name used for send, for backward compatibility with Tk 3.6 and earlier. Example 41-2 Telling other applications what your name is. The other application can use that name to communicate back. It contacts each registered Tk interpreter and sends a short command that contains the application's own name as a parameter. to get the name of the application.Įxample 41-2 shows how your application might connect up with several existing applications. In Tk 3.6 and earlier, you had to use winfo name. 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. The list of Tk applications is returned by the interps operation. The operations fall into the following categories:Įach Tk application has a name that is used when sending commands between applications using the send command, which is described in Chapter 40. The winfo command has just over 40 operations that return information about a widget or the display. Practical Programming in Tcl & Tk, Third EditionĬhapter 41.














Winfo dresses