Example #1
0
    def __init__(self, *args):
        if len(args) and isinstance(args[0], MFieldObject):
            self.copy(args[0])
        else:
            super(MFieldObject, self).__init__()

            self.fieldName_ = ""
            self.dataType_ = self.DataType.String
            self.format_ = MUtil.DateFormatType.MDY_SLASH
            self.precision_ = 0
            self.currency_ = QtCore.QChar(8364)
            self.negativeValueColor_ = QtGui.QColor().setRgb(255, 0, 0)
            self.comma_ = 0
            self.blankZero_ = 0
            self.codbarType_ = FLCodBar.nameToType("code128")
            self.codbarRes_ = 72
            self.saveColor_ = QtGui.QColor().setRgb(0, 0, 0)
Example #2
0
 def setCurrency(self, c):
     if c is None or not c:
         self.currency_ = QtCore.QChar(8364)
     else:
         self.currency_ = c