ldln has asked for the wisdom of the Perl Monks concerning the following question:
When I scroll halfway down into the text and press return to insert newlines into the widget, the scrollbars start to resize until they fill the entire scrollbar-box. When I then scroll up and down in the text the scrollbar is behaving crazy, resizing itself as I scroll past the newlines..use strict; use Tk; my $mw = MainWindow->new(); my $t = $mw->Scrolled('Text',-scrollbars=>'e',-wrap=>"word")->pack +; $t->insert("end"," this is a test" x 4000); MainLoop;
Is there any way to prevent this from happening?
I'm on win32 with perl 5.8.4-810 and Tk 804.027
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk::Text scrollbar resize problem
by kvale (Monsignor) on Oct 20, 2004 at 19:03 UTC | |
by ldln (Pilgrim) on Oct 20, 2004 at 19:29 UTC | |
|
Re: Tk::Text scrollbar resize problem
by Courage (Parson) on Oct 20, 2004 at 20:10 UTC |