def updateInterface(self): InstallProgress.updateInterface(self) if self.last >= self.percent: return sys.stdout.write("\r[%s] %s\n" %(self.percent, self.status)) sys.stdout.flush() self.last = self.percent
def updateInterface(self): InstallProgress.updateInterface(self) if self.last >= self.percent: return sys.stdout.write("\r[%s] %s\n" % (self.percent, self.status)) sys.stdout.flush() self.last = self.percent
def updateInterface(self): InstallProgress.updateInterface(self) if self.last >= self.percent: return self.status_label.setText(self.status) self.pbar.setValue(int(self.percent)) self.last = self.percent QtGui.qApp.processEvents()
def updateInterface(self): InstallProgress.updateInterface(self) # check if we haven't started yet with packages, pulse then if self.start_time == 0.0: self.progress.pulse() time.sleep(0.2) # check about terminal activity if self.last_activity > 0 and \ (self.last_activity + self.TIMEOUT_TERMINAL_ACTIVITY) < time.time(): if not self.activity_timeout_reported: logging.warning("no activity on terminal for %s seconds (%s)" % (self.TIMEOUT_TERMINAL_ACTIVITY, self.label_status.get_text())) self.activity_timeout_reported = True self.parent.expander_terminal.set_expanded(True) while gtk.events_pending(): gtk.main_iteration() time.sleep(0.02)