Re: Using progress bar without timeout



> 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



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