in reply to Handling resizing in pTk
If you want wrapping done automatically for you, how about using a Text widget instead?:
my $textbox = $mw->Text( -wrap => 'word', )->pack( -fill => 'both', -expand => 1, ); $mw->after(100 => sub { initialize() }); MainLoop; sub initialize { $textbox->insert("1.0", $long_text); }
Then you can choose between the following types of wrap:
-wrap => 'none' .... Don't do any wrapping at all -wrap => 'char' .... Wrap between characters -wrap => 'word' .... Wrap between words
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Handling resizing in pTk
by TGI (Parson) on Oct 09, 2007 at 18:21 UTC |