我一直在试验放置在根窗口中的框架。据我所知,堆叠顺序是在创建框架时确定的,首先创建的框架在随后创建的框架之下。.place的顺序似乎没有任何作用。
有什么方法可以改变堆叠顺序?
您可能正在寻找:
widget.lift() # move to the top of the stack
widget.lift(another) # move to just above another widget
widget.lower() # move to the bottom of the stack
widget.lower(another) # move to just below another widget
在这里解释。(这是我能找到的最佳文档。如果您阅读effbot,它的读法类似于lift
并且lower
仅适用于Windows,但实际上它们也可以与其他小部件一起使用。)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句