Home > Archive > PerlTk > April 2004 > Re: TK tips
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Brian McGonigle 2004-04-08, 9:33 am |
| You can tie standard out to a text widget with:
tie *STDOUT, ref $textwidget, $textwidget;
pete wrote:
> Joec wrote:
>
>
>
>
> The script 'widget' which comes with the Tk module is a good starting point
> - running it will bring up a selection of example scripts.
>
> Cheers,
>
> Pete
>
| |
|
| You need to play with the "packer" by re-arranging the order of your
widget definitions in your source code before doing the "->pack(...)"
thing on them -- I just wrote my first Perl/Tk app and had the most
trouble with getting the display just right. I couldn't get the grid()
or other geometry managers to work at all -- prob just my fault. But,
I finally got ->pack() to work and once I figured out HOW it did what
it was doing (by changing my code and running it over and over and
over again) then it made sense! :) Good luck!
Brian McGonigle <brian.mcgonigle@verizon.net> wrote in message
news:<Wzbdc.13255$bd4.5259@nwrddc01.gnilink.net>...[color=darkred]
> You can tie standard out to a text widget with:
>
> tie *STDOUT, ref $textwidget, $textwidget;
>
> pete wrote:
|
|
|
|
|