in reply to Re: Setting the minimum size of an autosized Tk widget
in thread Setting the minimum size of an autosized Tk widget
use strict; use warnings; use Tk; use Tk::BrowseEntry; my $top = MainWindow->new; my $f = $top->Frame; my $c1 = $f->BrowseEntry(-label => "Misc1:", -width => 0); $c1->form(-fill => 'x'); $c1->insert("end", "0"); $c1->insert("end", "LargeButWillStillFitInTopWidgetAsItExpands"); my $c2 = $f->BrowseEntry(-label => "Misc2:", -width => 0); $c2->form(-fill => 'x', -left => $c1); $c2->insert("end", "0"); $c2->insert("end", "Large"); $c2->insert("end", "LargeEnoughToNotFitInTopWidget"); $f->Frame(-width =>160)->form(); # strut for min width... $f->pack(-fill => 'x', -expand => 1); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Setting the minimum size of an autosized Tk widget
by tybalt89 (Monsignor) on Dec 10, 2021 at 19:28 UTC |