MCPcopy Index your code
hub / github.com/python/cpython / _iscolorstring

Method _iscolorstring

Lib/turtle.py:564–572  ·  view source on GitHub ↗

Check if the string color is a legal Tkinter color string.

(self, color)

Source from the content-addressed store, hash-verified

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,

Callers 1

_colorstrMethod · 0.80

Calls 1

winfo_rgbMethod · 0.80

Tested by

no test coverage detected