in reply to Help scrolling a series of textboxes with Tk
It is left as an exercise for the reader to get all that to size in an eye-pleasing way.#!/usr/bin/perl -w use strict; use Tk; my $MW = MainWindow->new; my $TX = $MW->Scrolled( 'Text', -wrap => 'none' )->pack( -expand => 'y +', -fill => 'both' ); my $t1 = $TX->Scrolled( "Text", width => 20 ); my $t2 = $TX->Scrolled( "Text", width => 20 ); my $t3 = $TX->Scrolled( "Text", width => 20 ); my $t4 = $TX->Scrolled( "Text", width => 20 ); my $t5 = $TX->Scrolled( "Text", width => 20 ); $TX->window('create', 'end', -window => $t1); $TX->window('create', 'end', -window => $t2); $TX->window('create', 'end', -window => $t3); $TX->window('create', 'end', -window => $t4); $TX->window('create', 'end', -window => $t5); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (ichi) Re: Help scrolling a series of textboxes with Tk
by BlueBlazerRegular (Friar) on Apr 26, 2002 at 18:15 UTC | |
by ichimunki (Priest) on Apr 28, 2002 at 14:10 UTC |