Пример #1
0
 def __init__(self, val, max, color=None, format="%v"):
     QProgressBar.__init__(self)
     Cell.__init__(self)
     self.setFormat(format)
     self.setMinimum(0)
     self.setMaximum(max)
     self.setValue(val)
     if color:
         palette = self.palette()
         palette.setColor(QPalette.Highlight, QColor(color))
         self.setPalette(palette)
Пример #2
0
    def __init__(self, parent):
        QProgressBar.__init__(self, parent)

        self._minimum = 0.0
        self._maximum = 1.0
        self._step_small = 0.0
        self._rvalue = 0.0

        self._label = ""
        self._pre_label = " "
        self._left_click_down = False
        self._textCall = None

        self.setMinimum(0)
        self.setMaximum(1000)
        self.setValue(0)
        self.setFormat("(none)")
Пример #3
0
    def __init__(self, parent):
        QProgressBar.__init__(self, parent)

        self.fLeftClickDown = False

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

        self.fLabel = ""
        self.fPreLabel = " "
        self.fTextCall = 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):
     QProgressBar.__init__(self)
     self.setMinimum(0)
     self.setMaximum(0)
     self.setMaximumHeight(6)
     self.setTextVisible(False)
Пример #5
0
 def __init__(self, parent):
     QProgressBar.__init__(self, parent)
     # self.setStyleSheet('border: 2px solid grey')
     self.setStyleSheet(DEFAULT_STYLE)
     self.setMaximumHeight(7)
Пример #6
0
 def __init__(self):
     QProgressBar.__init__(self)
     self.__InitUi()
Пример #7
0
 def __init__(self, parent):
     QProgressBar.__init__(self, parent)
     self.setStyleSheet(DEFAULT_STYLE)
     self.setMaximumHeight(7)
Пример #8
0
	def __init__(self, parent = False):
		QProgressBar.__init__(self, parent)
		
		self.__p_label = False