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

Method setStyle

code/graphics/graphics.py:844–848  ·  view source on GitHub ↗
(self, style)

Source from the content-addressed store, hash-verified

842 raise GraphicsError, BAD_OPTION
843
844 def setStyle(self, style):
845 if style in ['bold','normal','italic', 'bold italic']:
846 self._setFontComponent(2,style)
847 else:
848 raise GraphicsError, BAD_OPTION
849
850 def setTextColor(self, color):
851 self.color=color

Callers

nothing calls this directly

Calls 1

_setFontComponentMethod · 0.95

Tested by

no test coverage detected