title: How to set the min and max height or width of a Frame?
body: <p>The size of Tkinter windows can be controlled via the following methods:</p>
  
  <pre><code>.minsize()
  .maxsize()
  .resizable()
  </code></pre>
  
  <p>Are there equivalent ways to control the size of Tkinter or ttk Frames?</p>
  
  <p>@Bryan: I changed your frame1.pack code to the following:</p>
  
  <pre><code>frame1.pack(fill='both', expand=True)
  frame1.bind( '&lt;Configure&gt;', maxsize )
  </code></pre>
  
  <p>And I added this event handler:</p>
  
  <pre><code># attempt to prevent frame from growing past a certain size
  def maxsize( event=None ):
      print frame1.winfo_width()
      if frame1.winfo_width() &gt; 200:
          print 'frame1 wider than 200 pixels'
          frame1.pack_propagate(0)
          frame1.config( width=200 )
          return 'break'
  </code></pre>
  
  <p>The above event handler detects that a frame's width is too big, but is unable to prevent the increase in size from happening. Is this a limitation of Tkinter or have I misunderstood your explanation?</p>