Its been awhile since I fiddled with this stuff, but I took a look at one of my expandable frame objects, see below code. I think the "-expand" parm to pack() is what you need.
my $table_frame = $mw->Frame (-height=>'10', -width=>'30', -relief=>'groove', -borderwidth=>'3' )->pack( -expand=>1, -fill=>'both', -pady=>'0' );
I think when you pack your widget into the frame, you also have to allow -expand option. Here is continuation of code that packed a scrolled TableMatrix into that frame. Scrolled doesn't have any thing to do with whether you can re-size or not, that is a separate idea.
$table = $table_frame->Scrolled('TableMatrix', -cols => scalar(@col_head), -rows =>16, #fixed number of rows!!! need to grow this dynamically! -titlerows => 1, -variable => $tMain, -state => 'disabled', # no direct editing of cells -resizeborders => 'col', -bg => 'white', -rowheight => 1, #make row display more compact.... -bd => [0,1,0,1], -justify => 'left', -drawmode => 'compatible', -wrap => 0, -relief => 'solid', -scrollbars=>'se', -exportselection =>0, )->pack(-expand =>1, -fill=>'both'); $table->rowHeight(0,2); #varies height of title row (0) $table->tagRow('title',0); $table->tagConfigure('title', -bd=>2, -relief=>'raised');

In reply to Re: perl tk [frame resize] by Marshall
in thread perl tk [frame resize] by kishon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.