更新时间:2023-01-27 17:39:21
使用 somewidget.winfo_width()
和 somewidget.winfo_height()
获取实际的小部件大小,somewidget['width']
属性只是给几何管理器的一个提示.
Use somewidget.winfo_width()
and somewidget.winfo_height()
to get the actual widget size, the somewidget['width']
property is only a hint given to the geometry manager.