def hide_progress(self): """Hides the progress bar""" self.widgets.get_object('progress_dialog').hide() while Gtk.events_pending(): Gtk.main_iteration()