Re: ProgressBar set_text



On 17/07/07, Wouter Verhelst <wouter nixsys be> wrote:
directly using values which you extract using a regex like that has
issues with glib (it wants to have modifiable variables, which these
things aren't). Try assigning them to temporary variables before going
on:

if($line =~ /(\d*\.?\d*)(.*)/) {
        my $fraction=$1;
        my $text=$2;
        $pbar->set_fraction($fraction);
        $pbar->set_text($text);
}

Your modification works. Thanks. I don't understand then why it worked
with the print statement.

Regards

Jeff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]