Exemple #1
0
    def __init__(self, *args):
        super(MFieldObject, self).__init__()

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