<span class="gmail_quote"></span>I've got a main window which is 640 * 400.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.root.geometry(&quot;600x400&quot;)<br><br>&nbsp;self.label.pack(side=BOTTOM, fill=X)<br>This line would put the label at the bottom of the window, and extend to both left and right edges of the window.
<br><br>I want to change to grid geometry because I have several more widgets to put in the main window.<br>self.label.grid(row=5, column=2, column=0)<br><br>This put the label at row 5, in the center of the window, but the label didn't extend to the window edges.
<br><br>After reading this <a href="http://effbot.org/tkinterbook/grid.htm" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://effbot.org/tkinterbook/grid.htm</a><br><br>I tried playing around with other options, but can't get the label to move any lower in the main window
<br><br>self.label.grid(row=10, column=2, column=0)&nbsp; didn't move the label any lower than row 5<br><br>My main window isn't constructed using pack(), so I'm not mixing grid and pack in this program.<br>Although, the main window isn't calling grid explicitly either- that's a bit confusing, because I thought all widgets had to call grid or pack to be displayed...
<br><br>What args do I need to move the label to the bottom of the window, and centered so it extends to both left and right edges?<br>I don't like to hard-code a row number, I'd rather make the label dynamically be assigned to the bootm ros of the window, in case the window grows or shrinks.
<br><br><br>thanks<br><br><br><br><br>