Ejemplo n.º 1
0
    def __init__(self, parent):
        QAbstractSpinBox.__init__(self, parent)

        self.fName = ""

        self.fMinimum = 0.0
        self.fMaximum = 1.0
        self.fDefault = 0.0
        self.fValue = None

        self.fStep = 0.01
        self.fStepSmall = 0.0001
        self.fStepLarge = 0.1

        self.fIsReadOnly = False
        self.fScalePoints = None
        self.fUseScalePoints = False

        self.fBar = ParamProgressBar(self)
        self.fBar.setContextMenuPolicy(Qt.NoContextMenu)
        #self.fBar.show()

        self.fBox = None

        self.lineEdit().hide()

        self.customContextMenuRequested.connect(self.slot_showCustomMenu)
        self.fBar.valueChanged.connect(self.slot_progressBarValueChanged)

        QTimer.singleShot(0, self.slot_updateProgressBarGeometry)
Ejemplo n.º 2
0
    def __init__(self, parent):
        QAbstractSpinBox.__init__(self, parent)

        self.fName = ""

        self.fMinimum = 0.0
        self.fMaximum = 1.0
        self.fDefault = 0.0
        self.fValue   = None

        self.fStep      = 0.01
        self.fStepSmall = 0.0001
        self.fStepLarge = 0.1

        self.fIsReadOnly = False
        self.fScalePoints = None
        self.fUseScalePoints = False

        self.fBar = ParamProgressBar(self)
        self.fBar.setContextMenuPolicy(Qt.NoContextMenu)
        #self.fBar.show()

        self.fBox = None

        self.lineEdit().hide()

        self.customContextMenuRequested.connect(self.slot_showCustomMenu)
        self.fBar.valueChanged.connect(self.slot_progressBarValueChanged)

        QTimer.singleShot(0, self.slot_updateProgressBarGeometry)
Ejemplo n.º 3
0
 def __init__(self, *args):
     QAbstractSpinBox.__init__(self, *args)
     regexp = QtCore.QRegExp("^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$")
     self.validator = QtGui.QRegExpValidator(regexp)
     self._value = None
Ejemplo n.º 4
0
 def __init__(self, *args):
     QAbstractSpinBox.__init__(self, *args)
     regexp = QtCore.QRegExp('^0x[0-9A-Fa-f]{1,10}$')
     self.validator = QtGui.QRegExpValidator(regexp)
     self._value = 0
Ejemplo n.º 5
0
 def __init__(self, *args):
     QAbstractSpinBox.__init__(self, *args)
     regexp = QtCore.QRegExp('^0x[0-9A-Fa-f]{1,10}$')
     self.validator = QtGui.QRegExpValidator(regexp)
     self._value = 0