my $fright = $mw->Frame(-borderwidth=>3)->pack(-expand=>1, -side=>'lef +t', -fill=>'both'); my $fedit = $fright->Frame(-relief=>'sunken', -borderwidth=>5)->pack(-expand=>1, -side=>'top', -fill=>'both'); my $noteb = $fedit->NoteBook(-relief=>'raised', -background=>'skyblue' +)->pack(-expand=>1, -side=>'top', -fill=>'both'); my $nb1 = $noteb->add(1,-label=>"Stdout"); my $nb2 = $noteb->add(2,-label=>"View"); my $tedit = $nb1->Scrolled('Text', -scrollbars=>'oe')->pack(-expand=>1 +, -side=>'top', -fill=>'both'); $tedit->configure(-background=>'AliceBlue'); my $fileview = $nb2->Scrolled('ROText', -scrollbars=>'oe')->pack(-expa +nd=>1, -side=>'top', -fill=>'both'); $fileview->configure(-background=>'AliceBlue'); # Tie STDOUT to Text widget tie *STDOUT, 'Tk::Text', $tedit;
In reply to Re^2: Redirecting stdout
by Anonymous Monk
in thread Redirecting stdout
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |