python3 tkinter报错:_tkinter.TclError: cannot use geometry manager pack inside . which already has slaves managed by grid

报错:

_tkinter.TclError: cannot use geometry manager pack inside . which already has slaves managed by grid

原因:

一个程序中,只能使用一种布局,否则会报上面的错误。

几何方法 描述
pack() 包装;
grid() 网格;
place() 位置;
posted @ 2019-01-30 14:34  正态分个布  阅读(15465)  评论(0编辑  收藏  举报