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

Method setStyle

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

Source from the content-addressed store, hash-verified

749 raise GraphicsError, BAD_OPTION
750
751 def setStyle(self, style):
752 if style in ['bold','normal','italic', 'bold italic']:
753 f,s,b = self.config['font']
754 self._reconfig("font", (f,s,style))
755 else:
756 raise GraphicsError, BAD_OPTION
757
758 def setTextColor(self, color):
759 self.setFill(color)

Callers 1

testFunction · 0.95

Calls 1

_reconfigMethod · 0.80

Tested by

no test coverage detected