Toplevel Methods
In addition to cget
and
configure
, the following methods
are supported by the Toplevel widget. Note that since the MainWindow
is a Toplevel widget, each of these methods applies to the
MainWindow as well.
aspect
Returns the constraints to the aspect of the window. The four-item list returned corresponds to the minimum width, the minimum height, the maximum width, and the maximum height.
client
Assigns a name to the toplevel window.
colormapwindows
For the X Window System, passes a list of windows to the window manager that have private colormaps. Controls the WM_COLORMAP_WINDOWS property.
command
For the X Window System, returns the command used to start the application.
deiconify
Displays an iconified window.
focusmodel
Gives up the keyboard focus to another window.
frame
Returns the ID of the parent widget as a hexadecimal string.
geometry
For the X Window System, gets the geometry of the Toplevel widget.
grid
Changes the size of the Toplevel’s grid.
group
Makes the widget the group leader of a set of related windows.
iconbitmap
Identifies a bitmap to use as an icon when the window is iconified.
iconify
Iconifies the window.
iconmask
Specifies a mask for the icon bitmap.
iconname
Assigns text to be associated with the icon.
iconposition
Specifies a position for the icon on the desktop.
iconwindow
Specifies a widget to use in place of an icon when iconified.
maxsize
Specifies the largest size for the window.
minsize
Specifies the smallest size for the window.
overrideredirect
Removes window decorations ...
Get Perl in a Nutshell, 2nd 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.