示例#1
0
 def __init__(self, parent=None):
     """
     Initialize the progress bar.
     :param parent: the parent widget
     """
     QProgressBar.__init__(self, parent)
     self.setFixedSize(300, 20)
示例#2
0
    def __init__(self, parent):
        QProgressBar.__init__(self, parent)

        self.fLeftClickDown = False
        self.fIsInteger     = False
        self.fIsReadOnly    = False

        self.fMinimum   = 0.0
        self.fMaximum   = 1.0
        self.fInitiated = False
        self.fRealValue = 0.0

        self.fLastPaintedValue   = None
        self.fCurrentPaintedText = ""

        self.fLabel = ""
        self.fName  = ""
        self.fPreLabel = " "
        self.fTextCall  = None
        self.fValueCall = None

        self.setFormat("(none)")

        # Fake internal value, 10'000 precision
        QProgressBar.setMinimum(self, 0)
        QProgressBar.setMaximum(self, 10000)
        QProgressBar.setValue(self, 0)
示例#3
0
    def __init__(self, parent):
        QProgressBar.__init__(self, parent)

        self.fLeftClickDown = False
        self.fIsInteger = False

        self.fMinimum = 0.0
        self.fMaximum = 1.0
        self.fRealValue = 0.0

        self.fLastPaintedValue = None
        self.fCurrentPaintedText = ""

        self.fLabel = ""
        self.fName = ""
        self.fPreLabel = " "
        self.fTextCall = None
        self.fValueCall = None

        self.setFormat("(none)")

        # Fake internal value, 10'000 precision
        QProgressBar.setMinimum(self, 0)
        QProgressBar.setMaximum(self, 10000)
        QProgressBar.setValue(self, 0)
示例#4
0
 def __init__(self, panelwidget):
     self.panelwidget = panelwidget
     QProgressBar.__init__(self)
     self.setStyleSheet("QProgressBar { font: 8pt;}")
     self.setVisible(False)
     self.progressing = QTimer(panelwidget)
     self.progressing.setInterval(500)
     self.progressing.timeout.connect(self.waitInProgress)
示例#5
0
    def __init__(self, scheduler):
        self.scheduler = scheduler
        QProgressBar.__init__(self)
        self.setStyleSheet("QProgressBar { font: 8pt;}")
        self.setFixedSize(160, 28)

        self.setVisible(False)
        self.progressing = QTimer(scheduler)
        self.progressing.setInterval(500)
        self.progressing.timeout.connect(self.wait)
示例#6
0
 def __init__(self, parent):
     QProgressBar.__init__(self, parent)
     TextUpdateBase.__init__(self, parent)
     self._scientificNotation = False
     self._scale = ScaleType.Linear
     self.N = 100
     self.setMinimum(0)
     self.setMaximum(self.N)
     self._minimumValue = "0"
     self._maximumValue = "100"
示例#7
0
    def __init__(self, parent=None, pvname=None, autoconnect=True, average=1):
        widget = self
        self.as_num = True
        self.round = 0
        self.average = average
        self.color = 0
        self.previous_color = 0
        self.StyleSheet_colors = [
            '''#dead_time_indicator {
                                        text-align: center;
                                        min-height: 19px;
                                        max-height: 19px;
                                        border-radius: 3px;
                                        background-color: #6F6F6F;
                                    }
                                    #dead_time_indicator::chunk {
                                    border-radius: 3px;
                                    background-color: #31D27E;
                                    margin: 1px;
                                    width: 5px; 
                                }''', '''#dead_time_indicator {
                                        text-align: center;
                                        min-height: 19px;
                                        max-height: 19px;
                                        border-radius: 3px;
                                        background-color: #6F6F6F;
                                    }
                                    #dead_time_indicator::chunk {
                                    border-radius: 3px;
                                    background-color: #E8CE36;
                                    margin: 1px;
                                    width: 5px; 
                                }''', '''#dead_time_indicator {
                                        text-align: center;
                                        min-height: 19px;
                                        max-height: 19px;
                                        border-radius: 3px;
                                        background-color: #6F6F6F;
                                    }
                                    #dead_time_indicator::chunk {
                                    border-radius: 3px;
                                    background-color: #E83636;
                                    margin: 1px;
                                    width: 5px; 
                                }'''
        ]

        if self.as_num:
            self.av_list = []

        self.value = None
        QProgressBar.__init__(widget, parent=parent)
        self.setStyleSheet(self.StyleSheet_colors[self.color])
        self.widget_type = QProgressBar
        pvQWidget.__init__(widget, pvname, autoconnect, as_string=True)
示例#8
0
 def __init__(self, enuRow):
     QProgressBar.__init__(self)
     self.enuRow = enuRow
     self.enuRow.keyVarDict['elapsedTime'].addCallback(self.updateBar,
                                                       callNow=False)
     self.enuRow.keyVarDict['integratingTime'].addCallback(self.setExptime,
                                                           callNow=False)
     self.setStyleSheet(
         "QProgressBar {background-color: rgba(0, 0, 0, 0);color:white;text-align: center; }"
     )
     self.setFormat('EXPOSING \r\n' + '%v / %m secs')
示例#9
0
    def __init__(self, ccdRow):
        self.ccdRow = ccdRow
        QProgressBar.__init__(self)
        self.setRange(0, 4176)
        self.setFormat('READING \r\n' + '%p%')

        self.ccdRow.keyVarDict['readRows'].addCallback(self.updateBar,
                                                       callNow=False)
        self.setStyleSheet(
            "QProgressBar {background-color: rgba(0, 0, 0, 0);color:white;text-align: center; }"
        )
        self.resetValue()
示例#10
0
 def __init__(self, parent=None):
     QProgressBar.__init__(self, parent)
     self.setGeometry(30, 40, 200, 25)
     self.setToolTip('Downloading...')
示例#11
0
 def __init__(self, *args, **kwargs):
     QProgressBar.__init__(self, *args, **kwargs)
     self.setStyleSheet("QProgressBar { font: 8pt;}")
示例#12
0
 def __init__(self, parent=None):
     QProgressBar.__init__(self, parent)
     self.changeStyle("loading")
 def __init__(self, parent):
     QProgressBar.__init__(self)
示例#14
0
 def __init__(self, parent=None):
     QProgressBar.__init__(self, parent)
     self.setStyleSheet(DEFAULT_STYLE)
示例#15
0
 def __init__(self, parent=None, *args, **kwargs):
     QProgressBar.__init__(self, parent)
     if 'inicial' in kwargs:
         self.actualizar(kwargs['inicial'])
示例#16
0
 def __init__(self):
     QProgressBar.__init__(self)
     self.setValue(0)
     self.setMinimum(0)
     self.setMaximum(0)
示例#17
0
 def __init__(self, parent = None):
     QProgressBar.__init__(self, parent)