title: Stretching frames using grid layout in Python Tkinter
body: <p>I'm trying to get stretching to work using Python 2.6.7 with Tkinter. I'd expect the below code to stretch the first button to the width of the second, but both buttons are only as wide as they need to be to fit their text.</p>
  
  <pre><code>#!/usr/bin/python
  from Tkinter import *
  
  win = Frame()
  win.grid(sticky=N+S+E+W)
  
  inner_a = Frame(win)
  inner_a.grid(row=0, column=0, sticky=N+E+W)
  inner_b = Frame(win)
  inner_b.grid(row=1, column=0, sticky=S+E+W)
  
  Button(inner_a, text='1').grid(row=0, column=0, sticky=E+W)
  Button(inner_b, text='Some long text').grid(row=0, column=0, sticky=E+W)
  
  win.mainloop()
  </code></pre>
  
  <p>By my understanding, the single column in <code>win</code> will expand to the width of the largest thing it contains, ie the width of <code>inner_b</code>, and then the width of <code>inner_a</code>, and thence of the first button, will be that of the second button.</p>
  
  <p>Actually, what happens is the below; the first button is only wide enough to contain "1", not as wide as the second button.</p>
  
  <p><img src="https://i.stack.imgur.com/DkYTm.png" alt="Screen shot: two buttons stacked on top of each other, the first has the single character &quot;1&quot;, the second the words &quot;Some long text&quot;. The bottom button is considerably wider than the top."></p>
  
  <p>What do I need to do to get the first button to expand the size of the second?</p>