Re: [gtk-list] FAQ 5.11 (Why doesn´t my progressbar upate) with gtk-perl
- From: Paolo Molaro <lupus lettere unipd it>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] FAQ 5.11 (Why doesn´t my progressbar upate) with gtk-perl
- Date: Sun, 24 Oct 1999 19:33:41 +0200
On Thu, Oct 21, 1999 at 06:16:34PM +0200, Ramin Motakef wrote:
> The program reads a big (ca. 2MB) Datafile wich takes quite some time,
> so i would like to give the users some feedback that "there is
> something going on" with a Gtk::ProgressBar:
>
> while(defined($line = <DATA> )){
> if ($i % 100 == 0) {
> $val=($i/($count));
> $pbar->update($val);
> while (Gtk::Gdk->events_pending) {
^^^^^^^^
You should use Gtk->events_pending() here.
lupus
--
"You guys are definitely worth a wedding party." The Debian folks at ALS99
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]