Popcorn Dave has asked for the wisdom of the Perl Monks concerning the following question:
I've got one that is stumping me here.
I wrote a program for an advanced perl class I took that is a regular expressions trainer. So far so good...
I have had a need to use it for a rather long bit of text that I needed to write a regex for and wasn't having any luck with the write-test-write approach in my editor as the resulting text was too long and I couldn't scroll to see it all.
I want to add a scroll bar at this point:
my $restxt=$top->Label(width=>WIDTH, -textvariable=>\$match_results, -bg=>'white', -relief=>'groove', -font=>14, -height=>10, -justify=>'left', )->pack(-side=>'top');
but I'm unclear on how this can be done. I tried to change this to a listbox but that failed spectacularly.
Can anyone point me in a direction on this one?
Thanks!
Some people fall from grace. I prefer a running start...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding scroll bar in Tk label widget
by rbc (Curate) on Jun 02, 2002 at 05:41 UTC | |
by Popcorn Dave (Abbot) on Jun 02, 2002 at 21:12 UTC | |
by rbc (Curate) on Jun 03, 2002 at 15:29 UTC | |
by Popcorn Dave (Abbot) on Jun 03, 2002 at 17:40 UTC | |
|
Re: Adding scroll bar in Tk label widget
by svad (Pilgrim) on Jun 02, 2002 at 13:31 UTC | |
|
Re: Adding scroll bar in Tk label widget
by jepri (Parson) on Jun 03, 2002 at 01:40 UTC |