in reply to Re^6: tkx repeat
in thread tkx repeat

LOL!

You can see at http://search.cpan.org/src/SREZIC/Tk-804.028/Tk/After.pm that repeat is implemented using Tk::after(). Repeat is implemented using Tk::after, so use Tkx::after to implement repeat. Can you try writing repeat using Tkx::after now?

Replies are listed 'Best First'.
Re^8: tkx repeat
by bio595 (Initiate) on Dec 07, 2008 at 08:33 UTC
    I can certainly try.
    Sorry if I sound like a major noob, it's because I'm 16 and I've just started using Perl recently
      Excuses excuses :)
      Tkx::after(5000, \&repeat_me_every_5000ms ); sub repeat_me_every_5000ms { ... Tkx::after(5000, \&repeat_me_every_5000ms ); } my $sub = sub { ... Tkx::after(5000, $sub ); # schedule to repeat }; Tkx::after(5000, $sub );
        thanks