Tkinter入门
前页 |  | 后页

# Chapter 45. Toplevel Window Methods

This group of methods are used to communicated with the window manager. They are available on the root window (Tk), as well as on all Toplevel instances.

Note that different window managers behave in different ways. For example, some window managers don't support icon windows, some don't support window groups, etc.

# Visibility Methods

## deiconify

`deiconify()`. Display the window. New windows are displayed by default, so you only have to use this method if you have used iconify or withdraw to remove the window from the screen.

## iconify

`iconify()`. Turn the window into an icon (without destroying it). To redraw the window, use deiconify. Under Windows, the window will show up in the taskbar.

When the window has been iconified, the state method returns "iconic".

## withdraw

`withdraw()`. Remove the window from the screen (without destroying it). To redraw the window, use deiconify.

When the window has been withdrawn, the state method returns "withdrawn".

## state

`state()`. Returns the current state of self. This is one of the values "normal", "iconic" (see iconify), "withdrawn" (see withdraw) or "icon" (see iconwindow).

前页 | Home | 后页
Option Database | Up | Style Methods