def __init__(self, parent, size): ProgressDialog.__init__(self, _('Downloading icons...'), _('Downloading icons, please wait...'), max=size, parent=parent, icon='download_metadata.png') self.ds.connect(self.bar.setValue, type=Qt.QueuedConnection) self.acc.connect(self.accept, type=Qt.QueuedConnection) self.rej.connect(self.reject, type=Qt.QueuedConnection)
def __init__(self, parent, size): ProgressDialog.__init__(self, _('Downloading icons...'), _( 'Downloading icons, please wait...'), max=size, parent=parent, icon='download_metadata.png') self.ds.connect(self.bar.setValue, type=Qt.QueuedConnection) self.acc.connect(self.accept, type=Qt.QueuedConnection) self.rej.connect(self.reject, type=Qt.QueuedConnection)
def __init__(self, *args, **kwargs): PD.__init__(self, *args, **kwargs) self.on_progress_update.connect(self.progressed, type=Qt.QueuedConnection) self.finished_moving.connect(self.accept, type=Qt.QueuedConnection)
def __init__(self, *args, **kwargs): PD.__init__(self, *args, **kwargs) self.on_progress_update.connect(self.progressed, type=Qt.QueuedConnection) self.finished_moving.connect(self.accept, type=Qt.QueuedConnection)