def show_progress(self, txt): self.g_infolabel.set_text(txt) while Gtk.events_pending(): Gtk.main_iteration()