Set canvas' backgroundcolor if color is not None, else return backgroundcolor.
(self, color=None)
| 572 | return ok |
| 573 | |
| 574 | def _bgcolor(self, color=None): |
| 575 | """Set canvas' backgroundcolor if color is not None, |
| 576 | else return backgroundcolor.""" |
| 577 | if color is not None: |
| 578 | self.cv.config(bg = color) |
| 579 | self._update() |
| 580 | else: |
| 581 | return self.cv.cget("bg") |
| 582 | |
| 583 | def _write(self, pos, txt, align, font, pencolor): |
| 584 | """Write txt at pos in canvas with specified font |