Help for this page

Select Code to Download


  1. or download this
    # ProgressBar - display various progress bars.
    
    ...
    $mw->Scale(-from => 0, -to => 100, -variable => \$status_var)->pack;
    
    MainLoop;
    
  2. or download this
     
    # Your script should have
    $MainWindow->after(10,\&update_var);
    ...
        $status_var = $work_done/$total;
        $status_var = $status_var * 100; # get percentage
    }