in reply to Just another TK ProgressBar question!

You forgot that the percentage for the progress bar must be a integer between 0 and 100. So using the following code works fine :
... my $count = 0; my $total = @data; for (@data) { print STDOUT "$_\n"; $percent_done = $count * 100 / $total; $count++; $mw->update; } MainLoop();

--
zejames

Replies are listed 'Best First'.
Re^2: Just another TK ProgressBar question!
by Anonymous Monk on Sep 17, 2004 at 16:14 UTC
    I need to learn how to count,...:-)

    Thanks