def __init__(self, *args): QtGui.QWidget.__init__(self, None) self.ui = Ui_InstallWidget() self.ui.setupUi(self) self.timer = QTimer(self) QObject.connect(self.timer, SIGNAL("timeout()"), self.slotChangePix) if ctx.consts.lang == "tr": self.ui.progress.setFormat("%%p") self.iter_pics = iter_slide_pics() # show first pic self.slotChangePix() self.total = 0 self.cur = 0 self.hasErrors = False