def do_events(self): """process any outstanding gtk events""" while gtk.events_pending(): gtk.main_iteration(False)