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)
def __init__(self, *args): super(MLineObject, self).__init__() if isinstance(args[0], MLineObject): self.copy(args[0]) else: self.xpos1_ = 0 self.ypos1_ = 0 self.xpos2_ = 0 self.ypos2_ = 0 self.penWidth_ = 0 self.penColor_ = Qt.QColor().setRgb(0, 0, 0) self.penStyle_ = self.Style.SolidLine self.objectId = 0
def backgroundColor(self): if not self.PIC_CHK_D(): return Qt.QColor() return self.d.pte_.backgroundColor()