title: Removing or disabling a resizable Tkinter window maximise button under Windows
body: <p>Looking for advice on how to remove or disable a <em>resizable</em> window's maximize button under Windows. I'm using Python 2.7 for Windows.</p>
  
  <p>Background: I have a resizable window with min and max sizes set via the window's minsize() and maxsize() methods. When a user clicks the maximize button, the window moves to the upper left of the display. This is very confusing to my users so I would like to prevent that behavior.</p>
  
  <p>My research shows several ways to disable a maximize button - but none of these techniques seem to apply to resizable windows?</p>
  
  <ol>
  <li><p>Prevent a window from resizing via the resizable( False, False ) method.</p></li>
  <li><p>Remove all the window's controls (and border) via the overrideredirect( True ) method.</p></li>
  <li><p>Use the mysterious transient(1) method (this raises an exception under Windows).</p></li>
  <li><p>Bind the window's  event and try to block the maximize (update: Tkinter has already maximized the window by the time our  handler detects the maximize event. Returning "break" or using geometry(size|position) to size and re-position a window are both ignored)</p></li>
  <li><p>I've posted a question on the Python Win32 API mailing list to see if we can use a Windows API call to disable a window's maximize button via the hWnd handle that I believe(?) Tkinter exposes.</p></li>
  </ol>
  
  <p>Is there a way I can trap the maximize event (BEFORE Tkinter performs it)?</p>
  
  <p>Malcolm</p>