Getting Progress bar to display
- From: Mathew Yeates <mathew fugue jpl nasa gov>
- To: gtk-app-devel-list gnome org
- Subject: Getting Progress bar to display
- Date: Fri, 15 Jun 2001 17:09:19 -0700
Hi-
I'm trying to do the following (forgive the Python)
myprogressbar.show()
longfunc()
but the progress bar does not fully get shown until after the longfunc.
So I tried
myprogressbar.show()
while gtk.events_pending() != 0:
gtk.mainiteration(gtk.TRUE)
longfunc()
but apparently I need to process for events. So I resorted to
myprogressbar.show()
for i in range(10000):
while gtk.events_pending() != 0:
gtk.mainiteration(gtk.TRUE)
longfunc()
and this worked.
What is the correct way to do this? (I can't process the gtk signals from
within longfunc)
Mathew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]