Exemplo n.º 1
0
    def paintEvent(self, event):
        if self.fTextCall is not None:
            self.setFormat("%s %s %s" % (self.fPreLabel, self.fTextCall(), self.fLabel))
        else:
            self.setFormat("%s %f %s" % (self.fPreLabel, self.fRealValue, self.fLabel))

        QProgressBar.paintEvent(self, event)
Exemplo n.º 2
0
 def paintEvent(self, event):
     if self._textCall:
         self.setFormat("%s %s %s" % (self._pre_label, self._textCall(), self._label))
     else:
         self.setFormat("%s %f %s" % (self._pre_label, self._rvalue, self._label))
     return QProgressBar.paintEvent(self, event)