Re: Using progress bar without timeout

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

 



> I run the above C++ code from python by clicking a button. The problem
> is that when I print the percentage from the python side, it works
> fine, but when I call the pulse() method for ProgressBar, nothing gets
> updated on my GUI. Do I have to do anything else with the pbar object
> to make it display properly?

Either return to gtk-main-loop or empty the event-queue (gtk doesn't flush
events until it returns to it's main loop):

while (gtk_events_pending())
 gtk_main_iteration ();

http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-events-pending



Stian Skjelstad
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux