in reply to Re^2: Printing text from scrolled window?
in thread Printing text from scrolled window?
See the reply to Fletch.
BTW, why introduce a variable, or even the named sub come to that?
$frame_2->Button( -text => 'Print', -width=>7, -command=>sub {print $scroll->Contents ()}, )->pack(-side =>'bottom');
does what is required without the sub or variable, but doesn't show OP how to get the lines into an array and doesn't illustrate the technique required to use a named sub for the command handler.
It may well be that OP doesn't require instruction in such things and possibly no-one who comes after will benefit, but it wasn't much effort to illustrate those techniques and someone may learn from it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Printing text from scrolled window?
by Fletch (Bishop) on Jul 28, 2006 at 19:11 UTC |