( self, width, height,
bkgd = Color.WHITE, frgd = Color.BLACK )
| 155 | _DOT_DASH_LEN = _DOT_LEN + _DASH_LEN |
| 156 | |
| 157 | def __init__( self, width, height, |
| 158 | bkgd = Color.WHITE, frgd = Color.BLACK ): |
| 159 | self.wd = int( ceil(width) ) |
| 160 | self.ht = int( ceil(height) ) |
| 161 | self.bgcolor = 0 |
| 162 | self.fgcolor = 1 |
| 163 | self.palette = [] |
| 164 | self.palette.append( bkgd.toLong() ) |
| 165 | self.palette.append( frgd.toLong() ) |
| 166 | self.setDefaultPenColor() |
| 167 | |
| 168 | tmparray = [ self.bgcolor ] * self.wd |
| 169 | self.bitarray = [ tmparray[:] for i in range( self.ht ) ] |
| 170 | self.currentPen = 1 |
| 171 | self.fontName = "%s-%d-%s" % ( "none", 0, "none" ) |
| 172 | |
| 173 | def setDefaultPenColor( self ): |
| 174 | self.currentPen = self.fgcolor |
nothing calls this directly
no test coverage detected