[pygtk] gobject.idle_add and generators

skip at pobox.com skip at pobox.com
Sat May 3 12:21:27 WST 2008


    >> Does it make sense to call it like this?
    >> 
    >> gobject.idle_add(g)

    Greg> No, but it might make sense to use it like this:
    Greg>    gobject.idle_add(g().next)

Thanks, Johan pointed me down the right path.  That is indeed what I did.
Then new version is substantially simpler and faster to boot, so I'm a happy
camper.

Skip


More information about the pygtk mailing list