def __init__(self, parent=None): """ Initialize the progress bar. :param parent: the parent widget """ QProgressBar.__init__(self, parent) self.setFixedSize(300, 20)
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)
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)
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)
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)
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"
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)
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')
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()
def __init__(self, parent=None): QProgressBar.__init__(self, parent) self.setGeometry(30, 40, 200, 25) self.setToolTip('Downloading...')
def __init__(self, *args, **kwargs): QProgressBar.__init__(self, *args, **kwargs) self.setStyleSheet("QProgressBar { font: 8pt;}")
def __init__(self, parent=None): QProgressBar.__init__(self, parent) self.changeStyle("loading")
def __init__(self, parent): QProgressBar.__init__(self)
def __init__(self, parent=None): QProgressBar.__init__(self, parent) self.setStyleSheet(DEFAULT_STYLE)
def __init__(self, parent=None, *args, **kwargs): QProgressBar.__init__(self, parent) if 'inicial' in kwargs: self.actualizar(kwargs['inicial'])
def __init__(self): QProgressBar.__init__(self) self.setValue(0) self.setMinimum(0) self.setMaximum(0)
def __init__(self, parent = None): QProgressBar.__init__(self, parent)