[EMAIL PROTECTED] wrote:

    def g():
        while True:
            do_something_useful()
            yield True

Does it make sense to call it like this?

    gobject.idle_add(g)

No, but it might make sense to use it like this:

  gobject.idle_add(g().next)

--
Greg
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to