开发者

Minimizing a Tk Window

开发者 https://www.devze.com 2023-01-31 12:10 出处:网络
I have a window开发者_开发技巧 I made with Tkinter, I\'d like to be able to minimize it. This is in Windows 7 FYI. >>> import Tkinter

I have a window开发者_开发技巧 I made with Tkinter, I'd like to be able to minimize it. This is in Windows 7 FYI.


>>> import Tkinter
>>> w = Tkinter.Tk()
>>> w.wm_state('iconic')

Should work and minimize the window to the taskbar.

To minimize it to the taskbar as a button:

w.iconify()
0

精彩评论

暂无评论...
验证码 换一张
取 消