in reply to Re: Timing events in Tk
in thread Timing events in Tk

I'm slightly confused. Is it Tk::After or Tk::after? Also, I have tried using this code unsuccessfully:

#timer for answer if ($count > 0){ $timer = $guessbox->repeat($limit, \&check); }

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re: Re: Re: Timing events in Tk
by tedrek (Pilgrim) on Aug 10, 2003 at 01:54 UTC

    Well, which one works? :). As for that code, it won't work because $count will still be 0 at that point. You probably want to create the timer in question() and then cancel it in check().

    Tedrek