Popcorn Dave has asked for the wisdom of the Perl Monks concerning the following question:

Fellow monks,

I'm starting to play around with the Win32::GUI module and converting an old stock tracking program from Tk to Win32, but I'm getting stuck trying to replicate Tk's repeat function. I can't find the equivalent in the Win32::GUI module.

I tried some code along the lines of:

while (1){ my $h = $label->Height() + 5; &do_it; $main->Show(); sleep(2); }

in the hopes that I could just use an infinite loop and redraw over what I had before, but that didn't work.

Could someone please point me in the right direction in the docs?

TIA!

Revolution. Today, 3 O'Clock. Meet behind the monkey bars.

Replies are listed 'Best First'.
Re: Equivalent of Perl Tk's repeat() in Win32::GUI
by bbfu (Curate) on Nov 22, 2006 at 01:37 UTC
      Perfect, thank you!

      Revolution. Today, 3 O'Clock. Meet behind the monkey bars.