|
发表于 2018-12-26 16:54:55
|
显示全部楼层
方法
deiconify()
Displays the window, after using either the iconify or the withdraw methods.
在使用iconify或者withdraw方法后,显示窗口。
frame()
Returns a system-specific window identifier.
返回一个系统特定的窗口标识符
group(window)
Adds the window to the window group administered by the given window.
给特定的窗口分组
iconify()
Turns the window into an icon, without destroying it.
把窗口变成了一个图标,且不破坏它
protocol(name, function)
Registers a function as a callback which will be called for the given protocol.
给特定的协议添加一个回调函数
state()
Returns the current state of the window. Possible values are normal, iconic, withdrawn, and icon.
返回窗口的当前状态。可能的值是正常的,标志性、撤销和图标。
transient([master])
Turns the window into a temporary(transient) window for the given master, or to the window's parent, when no argument is given.
把窗口作为临时窗口给master,如果没有给参数,就给父窗口
withdraw()
Removes the window from the screen, without destroying it.
从屏幕上删除窗口,且不破坏它。
maxsize(width, height)
Defines the maximum size for this window.
定义这个窗口的最大尺寸。
minsize(width, height)
Defines the minimum size for this window.
定义这个窗口的最小尺寸。
positionfrom(who)
Defines the position controller.
定义位置控制器。
resizable(width, height)
Defines the resize flags, which control whether the window can be resized.
定义大小标志,它控制是否可以调整大小的窗口。
sizefrom(who)
Defines the size controller.
定义尺寸的控制器。
title(string)
Defines the window title.
定义窗口名字。
|
评分
-
查看全部评分
|