in reply to Re: Does this Tk program require a thread?
in thread Does this Tk program require a thread?

Not elegant by a long shot but it did the trick. Thanks for looking that up.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff";
$nysus = $PM . $MCF;
Click here if you love Perl Monks

  • Comment on Re: Re: Does this Tk program require a thread?

Replies are listed 'Best First'.
Re3: Does this Tk program require a thread?
by bbfu (Curate) on Jul 15, 2003 at 01:28 UTC

    And, in case you haven't already looked it up, WaitForChange() accepts a millisecond time-out parameter. So, you can call $changed = $clip->WaitForChange(1); to get a "non-blocking" wait.

    bbfu
    Black flowers blossom
    Fearless on my breath

Re: Re: Re: Does this Tk program require a thread?
by William G. Davis (Friar) on Jul 15, 2003 at 07:14 UTC

    You might also want to take a look at the Tk::After POD and the other methods it provides in addition to repeat() (like after(), afterIdle(), etc.).

    Also of interest would be waitVariable() and the other wait* methods (see Tk::Widget).