schweini has asked for the wisdom of the Perl Monks concerning the following question:
... and some thime later i simply do someopen(VIRTUALPRN, "| perl print.pl");
use Tk; $mw = MainWindow->new(-width => 300, -height => 600); $pp = $mw->Scrolled("Text")->pack; $pp->configure( -background => 'white', -scrollbars => 'osoe', -font => '*-courier-medium-r-*-*-17-*' ); tie(*PP, 'Tk::Text', $pp); sub foo { while($l = <STDIN>) { print INVOICEVIEW $l; $pp->update(); } } MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pipeing to a Tk-App
by graff (Chancellor) on Feb 17, 2003 at 05:42 UTC | |
by schweini (Friar) on Feb 17, 2003 at 05:56 UTC |