def setDrawColor(self, drawcolor): if drawcolor is None: drawcolor = PDFColor("d") elif isinstance(drawcolor, PDFColor) and drawcolor.colortype is "d": pass else: drawcolor.setColorType("d") self.drawcolor = drawcolor
def setTextColor(self, textcolor): if textcolor is None: textcolor = PDFColor("t") elif isinstance(textcolor, PDFColor) and textcolor.colortype is "t": pass else: textcolor.setColorType("t") self.textcolor = textcolor self._setColorFlag()
def setFillColor(self, fillcolor): if fillcolor is None: fillcolor = PDFColor("f") elif isinstance(fillcolor, PDFColor) and fillcolor.colortype is "f": pass else: fillcolor.setColorType("f") self.fillcolor = fillcolor self._setColorFlag()