Tkinter window layering

霸气de小男生 提交于 2019-12-24 16:29:23

问题


I have two Tkinter windows, How do I keep one window always on top of the other?


回答1:


There isn't anything you can do AFAIK. According to the official tk documentation,

...there is no reliable way to track changes to a window's position in the stacking order.

About the best you could do is to periodically raise one window above the other. I don't recommend that because it may have some really disastrous side effects (for example, making it difficult or impossible for the user to move the window that is always lower than the top-most one)



来源:https://stackoverflow.com/questions/4066359/tkinter-window-layering

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