P is for Practical | |
PerlMonks |
Tk::grid -sticky option not stretching framesby boleary (Scribe) |
on Jul 16, 2018 at 12:07 UTC ( [id://1218559]=perlquestion: print w/replies, xml ) | Need Help?? |
boleary has asked for the wisdom of the Perl Monks concerning the following question: I have been struggling with the -sticky option with Tk::grid. It does not seem to want to stretch a container for me. In this simple example I use $gridOrPack to select whether I will grid or pack 2 frames. Then I add a label to one frame and a button to the other frame... when I set $gridOrPack to 'pack' I pack with -expand=>1 and fill=>'both', It behaves just like I want... the frames stretch to fill the mainWindow when I set $gridOrPack to 'grid' I grid with the -sticky option set to 'nsew' (I've also tried 'ew' and 'ns') and the frames do not stretch. Am I missing something silly?
Back to
Seekers of Perl Wisdom
|
|