예제 #1
0
    def __init__(self, parent=None):
        QProgressDialog.__init__(self, parent)

        self.progress = QProgressBar(self)
        self.progress.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter)

        self.setBar(self.progress)
예제 #2
0
 def __init__(self, parent):
     flags = Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint
     QProgressDialog.__init__(self, '', "Cancel", 0, 100, parent, flags)
     self.setModal(True)
     self.setAutoReset(False)
     self.setAutoClose(False)
     self._timer = QTimer()
     self._jobid = ''
     self._timer.timeout.connect(self.updateProgress)
예제 #3
0
파일: qt.py 프로젝트: hsoft/jobprogress
 def __init__(self, parent):
     flags = Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint
     QProgressDialog.__init__(self, '', "Cancel", 0, 100, parent, flags)
     self.setModal(True)
     self.setAutoReset(False)
     self.setAutoClose(False)
     self._timer = QTimer()
     self._jobid = ''
     self._timer.timeout.connect(self.updateProgress)
예제 #4
0
    def __init__(self, parent = None):
        QProgressDialog.__init__(self, parent)
        self.setWindowTitle(_("Downloading"))

        # Top level fixed size dialog
        self.setWindowModality(Qt.WindowModal)
        # Do not close when reaching 100%
        self.setAutoClose(False)
        self.setAutoReset(False)
        
        self.__nbr_pages_ = -1
예제 #5
0
    def __init__(self, parent):
        """
        Initializes the progress dialog of
        the template updater with the option
        of updating the label of the dialog.
        :return:
        :rtype:
        """

        QProgressDialog.__init__(self, parent)
        self.title = None
        self.prog = None
예제 #6
0
    def __init__(self, parent):

        """
        Initializes the progress dialog of
        the template updater with the option
        of updating the label of the dialog.
        :return:
        :rtype:
        """

        QProgressDialog.__init__(self, parent)
        self.title = None
        self.prog = None
예제 #7
0
 def __init__(self, parent, model):
     flags = Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint
     QProgressDialog.__init__(self, '', "Cancel", 0, 100, parent, flags)
     self.model = model
     model.view = self
     # We don't have access to QProgressDialog's labels directly, so we se the model label's view
     # to self and we'll refresh them together.
     self.model.jobdesc_textfield.view = self
     self.model.progressdesc_textfield.view = self
     self.setModal(True)
     self.setAutoReset(False)
     self.setAutoClose(False)
     self._timer = QTimer(self)
     self._timer.timeout.connect(self.model.pulse)
예제 #8
0
 def __init__(self, *args, **kwargs):
     QProgressDialog.__init__(self, *args, **kwargs)
예제 #9
0
파일: backendcfg.py 프로젝트: kyrre/weboob
 def __init__(self, *args, **kwargs):
     QProgressDialog.__init__(self, *args, **kwargs)
예제 #10
0
 def __init__(self, parent, title="Processing..."):
     QProgressDialog.__init__(self, parent)
     self.setWindowTitle(title)
     self.setMinimumWidth(500)
     self.setAutoReset(False)
예제 #11
0
 def __init__(self, parent, title='Processing...'):
     QProgressDialog.__init__(self, parent)
     self.setWindowTitle(title)
     self.setMinimumWidth(500)
     self.setAutoReset(False)