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

Method setCoords

code/graphics/graphics.py:278–281  ·  view source on GitHub ↗

Set coordinates of window to run from (x1,y1) in the lower-left corner to (x2,y2) in the upper-right corner.

(self, x1, y1, x2, y2)

Source from the content-addressed store, hash-verified

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
280 lower-left corner to (x2,y2) in the upper-right corner."""
281 self.trans = Transform(self.width, self.height, x1, y1, x2, y2)
282
283 def close(self):
284 if self.closed: return

Callers 2

testFunction · 0.95
histogram.pyFile · 0.80

Calls 1

TransformClass · 0.85

Tested by

no test coverage detected