def status_notify(self, fraction, progress_text, status_text=''):
        """Updates the GUI with the given progress."""
        gtk.gdk.threads_enter()
        try:  # coupling...
            if self._pdialog.top_widget:
                self._pdialog.progressbar.set_fraction(fraction)
                self._pdialog.progressbar.set_text(progress_text)
                self._pdialog.statustext.set_markup('<i>%s</i>' % status_text)
        finally:
            gtk.gdk.threads_leave()
dataset/ETHPy150Open thesamet/webilder/src/webilder/progress_dialog.py/ProgressThread.status_notify/original