def __init__(self): super(QtProgress, self).__init__() self.ui = Ui_Dialog() self.ui.setupUi(self) self.show() self._update()