开发者

Python Tool Windows

开发者 https://www.devze.com 2023-01-13 09:26 出处:网络
TL.attributes(\'-toolwindow\', True) I\'m making a GUI in Tkinter th开发者_Go百科at uses a tool window, is there anyway to make this window show up in the task bar? On most systems, you can temporar
TL.attributes('-toolwindow', True)

I'm making a GUI in Tkinter th开发者_Go百科at uses a tool window, is there anyway to make this window show up in the task bar?


On most systems, you can temporarily remove the window from the screen by iconifying it. In Tk, whether or not a window is iconified is referred to as the window's state. The possible states for a window include "normal" and "iconic" (for an iconified window). There are some others too.

thestate = window.state()
window.state('normal')
window.iconify()
window.deiconify()

Docs at : http://effbot.org/tkinterbook/wm.htm should be of some help.

0

精彩评论

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