Re: ProgressBar set_text
- From: "Jeffrey Ratcliffe" <jeffrey ratcliffe gmail com>
- To: "Wouter Verhelst" <wouter nixsys be>
- Cc: gtk-perl-list gnome org
- Subject: Re: ProgressBar set_text
- Date: Tue, 17 Jul 2007 11:00:29 +0200
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]