Пример #1
0
 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
Пример #2
0
 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()
Пример #3
0
 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()