MCPcopy Index your code
hub / github.com/csev/py4e / setTextColor

Method setTextColor

code/graphics/graphics.py:850–854  ·  view source on GitHub ↗
(self, color)

Source from the content-addressed store, hash-verified

848 raise GraphicsError, BAD_OPTION
849
850 def setTextColor(self, color):
851 self.color=color
852 if self.entry:
853 #self.entry.config(fg=color)
854 _tkExec(self.entry.config,fg=color)
855
856 def __str__(self):
857 return 'Entry "%s" at %s' % (self.getText(), self.anchor.coordStr())

Callers

nothing calls this directly

Calls 1

_tkExecFunction · 0.85

Tested by

no test coverage detected