crabbdean has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; use Tk::Pane; my $mw = MainWindow->new (-title => 'sgui'); $mw->resizable('false','true'); my $run = $mw -> Button(-text => 'Run!', -width => 27, -command => [\&that] ); my $enter = $mw->Label(-text => "\nOutput"); my $pane = $mw->Scrolled("Pane", Name => 'fred', -scrollbars => 'osoe', -sticky => 'we', -width => 540, -height => 580 ); my $text = $pane->Text(-width => 75, -height => 40); my $quitButton = $mw->Button ( -text => 'Quit', -width => 27, -command => \&quit); $enter->pack; $pane->Frame; $pane->pack; $text->pack; $text->insert('end', \*STDOUT); $quitButton->pack; MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl:TK - standard output to text widget
by bbfu (Curate) on Feb 27, 2004 at 21:25 UTC | |
by crabbdean (Pilgrim) on Feb 28, 2004 at 09:12 UTC | |
by bbfu (Curate) on Mar 13, 2004 at 00:26 UTC | |
|
Re: Perl:TK - standard output to text widget
by matija (Priest) on Feb 27, 2004 at 19:07 UTC | |
|
Re: Perl:TK - standard output to text widget
by kvale (Monsignor) on Feb 27, 2004 at 19:10 UTC | |
|
Re: Perl:TK - standard output to text widget
by zentara (Cardinal) on Feb 28, 2004 at 16:40 UTC | |
by rehmanz (Novice) on Aug 16, 2010 at 23:41 UTC | |
by zentara (Cardinal) on Aug 17, 2010 at 12:57 UTC | |
by rehmanz (Novice) on Aug 17, 2010 at 20:11 UTC |