Minimizing a Tk Window

风格不统一 提交于 2021-01-27 04:01:06

问题


I have a window I made with Tkinter, I'd like to be able to minimize it. This is in Windows 7 FYI.


回答1:


>>> 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()


来源:https://stackoverflow.com/questions/4481880/minimizing-a-tk-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!