PyDocs

Nav

Graphical user interfaces with Tk

Wm

tkinter

class
The Wm mixin provides access to the window manager, allowing an application to control such things as the title, geometry and icon of a top-level window, the way it is resized, and how it responds to window manager protocols. It is mixed into Tk and Toplevel, so its methods are available on every top-level window. Each method has two equivalent spellings: a short name and a wm_-prefixed name (for example, title() and wm_title()). See also The window manager.
Members of Wm

a

aspect
Constrain the aspect ratio (the ratio of width to height) of the window.
attributes
Query or set platform-specific attributes of the window.

c

client
Store name, which should be the name of the host on which the application is running, in the window’s WM_CLIENT_MACHINE property for use by the window or session manager.
colormapwindows
Manipulate the WM_COLORMAP_WINDOWS property, which tells the window manager about windows that have private colormaps.
command
Store value in the window’s WM_COMMAND property for use by the window or session manager; it should be a list giving the words of the command used to invoke the application.

d

deiconify
Display the window in normal (non-iconified) form by mapping it.

f

focusmodel
Set or query the focus model for the window.
forget
Unmap window from the screen so that it is no longer managed by the window manager.
frame
Return the platform-specific window identifier for the outermost decorative frame containing the window, if the window manager has reparented it into such a frame; otherwise return the identifier of …

g

geometry
Set or query the geometry of the window.
grid
Manage the window as a gridded window and define the relationship between grid units and pixels.
group
Set or query the leader of a group of related windows.

i

iconbitmap
Set or query the bitmap used by the window manager for the window’s icon.
iconify
Iconify the window.
iconmask
Set or query the bitmap used as a mask for the icon (see iconbitmap()).
iconname
Set or query the name displayed by the window manager inside the window’s icon.
iconphoto
Set the titlebar icon for the window from one or more PhotoImage objects given in images.
iconposition
Set or query a hint to the window manager about where the window’s icon should be positioned.
iconwindow
Set or query the window used as the icon for the window.

m

manage
Make widget a stand-alone top-level window, decorated by the window manager with a title bar and so on.
maxsize
Set or query the maximum permissible dimensions of the window, in pixels (or grid units for a gridded window).
minsize
Set or query the minimum permissible dimensions of the window, in pixels (or grid units for a gridded window).

o

overrideredirect
Set or query the override-redirect flag for the window.

p

positionfrom
Set or query the source of the window’s current position.
protocol
Register func as the handler for the window manager protocol name, an atom such as 'WM_DELETE_WINDOW', 'WM_SAVE_YOURSELF' or 'WM_TAKE_FOCUS'; func is then called whenever the window manager sends a m…

r

resizable
Control whether the user may interactively resize the window.

s

sizefrom
Set or query the source of the window’s current size.
state
Set or query the state of the window.

t

title
Set or query the title for the window, which the window manager should display in the window’s title bar.
transient
Mark the window as a transient window (such as a pull-down menu or dialog) working on behalf of master, the path name of another top-level window.

w

withdraw
Withdraw the window from the screen, unmapping it and causing the window manager to forget about it.
wm_aspect
Constrain the aspect ratio (the ratio of width to height) of the window.
wm_attributes
Query or set platform-specific attributes of the window.
wm_client
Store name, which should be the name of the host on which the application is running, in the window’s WM_CLIENT_MACHINE property for use by the window or session manager.
wm_colormapwindows
Manipulate the WM_COLORMAP_WINDOWS property, which tells the window manager about windows that have private colormaps.
wm_command
Store value in the window’s WM_COMMAND property for use by the window or session manager; it should be a list giving the words of the command used to invoke the application.
wm_deiconify
Display the window in normal (non-iconified) form by mapping it.
wm_focusmodel
Set or query the focus model for the window.
wm_forget
Unmap window from the screen so that it is no longer managed by the window manager.
wm_frame
Return the platform-specific window identifier for the outermost decorative frame containing the window, if the window manager has reparented it into such a frame; otherwise return the identifier of …
wm_geometry
Set or query the geometry of the window.
wm_grid
Manage the window as a gridded window and define the relationship between grid units and pixels.
wm_group
Set or query the leader of a group of related windows.
wm_iconbitmap
Set or query the bitmap used by the window manager for the window’s icon.
wm_iconify
Iconify the window.
wm_iconmask
Set or query the bitmap used as a mask for the icon (see iconbitmap()).
wm_iconname
Set or query the name displayed by the window manager inside the window’s icon.
wm_iconphoto
Set the titlebar icon for the window from one or more PhotoImage objects given in images.
wm_iconposition
Set or query a hint to the window manager about where the window’s icon should be positioned.
wm_iconwindow
Set or query the window used as the icon for the window.
wm_manage
Make widget a stand-alone top-level window, decorated by the window manager with a title bar and so on.
wm_maxsize
Set or query the maximum permissible dimensions of the window, in pixels (or grid units for a gridded window).
wm_minsize
Set or query the minimum permissible dimensions of the window, in pixels (or grid units for a gridded window).
wm_overrideredirect
Set or query the override-redirect flag for the window.
wm_positionfrom
Set or query the source of the window’s current position.
wm_protocol
Register func as the handler for the window manager protocol name, an atom such as 'WM_DELETE_WINDOW', 'WM_SAVE_YOURSELF' or 'WM_TAKE_FOCUS'; func is then called whenever the window manager sends a m…
wm_resizable
Control whether the user may interactively resize the window.
wm_sizefrom
Set or query the source of the window’s current size.
wm_state
Set or query the state of the window.
wm_title
Set or query the title for the window, which the window manager should display in the window’s title bar.
wm_transient
Mark the window as a transient window (such as a pull-down menu or dialog) working on behalf of master, the path name of another top-level window.
wm_withdraw
Withdraw the window from the screen, unmapping it and causing the window manager to forget about it.
0 Examples
No examples for tkinter/Wm.
See Also
No see-alsos for tkinter/Wm
0 Notes
No notes for Wm