def __init__(self, parent): PAbstractBox.__init__(self, parent) self.ui = Ui_InstallProgress() self.ui.setupUi(self) self._animation = 2 self._duration = 500
class InstallProgressWidget(PAbstractBox): def __init__(self, parent): PAbstractBox.__init__(self, parent) self.ui = Ui_InstallProgress() self.ui.setupUi(self) self._animation = 2 self._duration = 500 def showInstallProgress(self): QTimer.singleShot(1, lambda: self.animate(start = BOTCENTER, stop = BOTCENTER)) """
class InstallProgressWidget(PAbstractBox): def __init__(self, parent): PAbstractBox.__init__(self, parent) self.ui = Ui_InstallProgress() self.ui.setupUi(self) self._animation = 2 self._duration = 500 def showInstallProgress(self): QTimer.singleShot( 1, lambda: self.animate(start=BOTCENTER, stop=BOTCENTER)) """