Tcl/Tk: How to auto expand frame to fill a row in grid
<p>I am trying to create a tk window which has two frames. First on top and another below. The Frame on top should contain a text box which needs to fill out the entire frame.</p>

<p>But using the code below, I found that the frame is only half filling the window and the text box is only half filling the frame. I am using the grid approach so that it auto expands but neither did it not auto expand nor did the widgets fill out their respective containers. I am wodnering if the grid approch correct for this purpose?</p>

<pre><code>namespace eval RESTLogVwr {}
toplevel .t
wm geometry .t 1500x800+10+10
wm resizable .t 0 0
grid rowconfigure .t 2 -weight 1
frame .t.f1 -bd 2 -relief groove -bg blue
text .t.f1.text -state disabled -bg black
pack .t.f1.text -fill both -expand 0
grid config .t.f1 -row 2 -column 3 -columnspan 1 -rowspan 1  -sticky "snew"
grid config .t.f1.text -row 2 -column 3 -columnspan 1 -rowspan 1  -sticky "snew"
grid rowconfigure .t 2 -weight 1
</code></pre>