设置Tkinter 窗口无法拖拽放大缩小
root = tkinter.Tk()
root.resizable(False, False)
def wm_resizable(self, width=None, height=None):
"""Instruct the window manager whether this width can be resized
in WIDTH or HEIGHT. Both values are boolean values."""
return self.tk.call('wm', 'resizable', self._w, width, height)
resizable = wm_resizable
参数width 、height 均为bool 类型 ,width 横向调整开关,height 纵向调整开关
设置Tkinter 窗口无法拖拽放大缩小root = tkinter.Tk() # 创建顶级窗口root.resizable(False, False) #横纵均不允许调整定位源码 def wm_resizable(self, width=None, height=None): """Instruct the window manager whether this width can be resized in WIDTH or HEIGHT. Both va