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

Method setBackground

code/graphics/graphics.py:272–276  ·  view source on GitHub ↗

Set background color of the window

(self, color)

Source from the content-addressed store, hash-verified

270 raise GraphicsError, "window is closed"
271
272 def setBackground(self, color):
273 """Set background color of the window"""
274 self.__checkOpen()
275 _tkExec(self.config, bg=color)
276 #self.config(bg=color)
277
278 def setCoords(self, x1, y1, x2, y2):
279 """Set coordinates of window to run from (x1,y1) in the

Callers

nothing calls this directly

Calls 2

__checkOpenMethod · 0.95
_tkExecFunction · 0.85

Tested by

no test coverage detected