Check if the string color is a legal Tkinter color string.
(self, color)
| 562 | self.cv.after(delay) |
| 563 | |
| 564 | def _iscolorstring(self, color): |
| 565 | """Check if the string color is a legal Tkinter color string. |
| 566 | """ |
| 567 | try: |
| 568 | self.cv.winfo_rgb(color) |
| 569 | ok = True |
| 570 | except TK.TclError: |
| 571 | ok = False |
| 572 | return ok |
| 573 | |
| 574 | def _bgcolor(self, color=None): |
| 575 | """Set canvas' backgroundcolor if color is not None, |