Making a window not resizable in Windows Making a window not resizable in Windows tkinter tkinter

Making a window not resizable in Windows


Here are a couple of ideas:

  • You can try removing the WS_THICKFRAME style:

    frame.ModifyStyle(win32con.WS_THICKFRAME, 0)
  • Another alternative is to handle the WM_GETMINMAXINFO message that returns the minimum and maximum width and height for a window. In your case, you would return the current width and height. You can get this information with GetWindowRect.


I have no idea about the python angle, but another method to prevent a window from being resizable (in addition to changing its style) is to handle WM_WINDOWPOSCHANGING and override the new size with your desired size.