Hi gurus -
OK I have a small perl/tk gui front-end -
One of the options is to run an import on a mysql database -
I would like to show the user how far we have got with the insert .... I have set the ProgressBar widget up and it runs fine - but only with the default values
eg -
my $progress =
$mw->ProgressBar(-width => 30,
# -height => 2,
-length => 200,
-from => 0,
-to => 100,
# -anchor => 'e',
-blocks => 10,
-colors => [0, 'green', 30, 'blue' , 70, 'red'],
-variable => \$percent_done,
);
for ($percent_done=0; $percent_done <= 100; $percent_done +=5) {
$text = "$percent_done% done ...";
$mw->update;
sleep 1;
But I need the progress bar to reflect the values as it imports into the database (obviously it could be a small import or a very large one)
Hope I am not rambling too much -
Any pointers would be most welcome -
Cheers
Rab
OK I have a small perl/tk gui front-end -
One of the options is to run an import on a mysql database -
I would like to show the user how far we have got with the insert .... I have set the ProgressBar widget up and it runs fine - but only with the default values
eg -
my $progress =
$mw->ProgressBar(-width => 30,
# -height => 2,
-length => 200,
-from => 0,
-to => 100,
# -anchor => 'e',
-blocks => 10,
-colors => [0, 'green', 30, 'blue' , 70, 'red'],
-variable => \$percent_done,
);
for ($percent_done=0; $percent_done <= 100; $percent_done +=5) {
$text = "$percent_done% done ...";
$mw->update;
sleep 1;
But I need the progress bar to reflect the values as it imports into the database (obviously it could be a small import or a very large one)
Hope I am not rambling too much -
Any pointers would be most welcome -
Cheers
Rab