On Wed, Mar 12, 2003 at 08:35:36AM -0600, Jon Nelson wrote:
> > > > This seems really silly.
> > > > If you're gonna f up events_pending in this way, then that means you are
> > > > not going to ever pump the gtk event queue. If you really don't need to
> > > > call mainiteration, then why don't you just remove the whole
> > > > while gtk.events_pending(): gtk.mainiteration nonsense.
>
> Yes. eventually the function do_real_work_with_data_read_from_file (I
> am getting tired of typing that) *does* call:
Tip: use vim's ctrl-N feature, or emacs' related completion feature (I
just did do_<ctrl-N> and it became do_real_work_with_data_read_from_file).
> while gtk.events_pending():
> gtk.mainiteration()
>
> It's necessary for various reasons, not the least of which is a simple
> progress bar.
Can't this while become:
while self.check_events and gtk.events_pending():
gtk.mainiteration()
And we use the check_events flag like I described before?
Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/