Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Re: Redraw windows

by NaSe77 (Monk)
on May 06, 2002 at 14:06 UTC ( #164325=note: print w/replies, xml ) Need Help??

in reply to Re: Redraw windows
in thread Redraw windows

Thanks - it wasn't really what i searched for but it helped my find the answer - using fileevent:
#!/usr/bin/perl -w use Tk; open(CHILD, "perl|") or die "Nope: $!"; my $mw = new MainWindow; my $t = $mw->Text(-width => 80, -height => 25, -wrap => 'none'); $t->pack(-expand => 1); $mw->fileevent(\*CHILD, 'readable', [\&fill_text_widget, $t]); MainLoop; sub fill_text_widget { my($widget) = @_; $_ = <H>; $widget->insert('end', $_); $widget->yview('end'); }

Replies are listed 'Best First'.
Re: Re: Re: Redraw windows
by Rich36 (Chaplain) on May 06, 2002 at 14:15 UTC

    Cool. Didn't know about that one. That seems a little more general in that it looks like it can be tied to a variety of widgets.

    There's more than one way to screw it up...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://164325]
[erix]: go to the bottom of this page: Seekers of Perl Wisdom
[karlgoethebier]: thao4: Si tout le reste échoue demande en francais ;-) There are some French speaking monks in the monastry...
[erix]: weird: a dev version perl (perl-5.27.9) is released, but git doesn't contain a perl-5.27.10 yet
[karlgoethebier]: ...not me ;-)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-02-21 10:04 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (276 votes). Check out past polls.