MCPcopy Index your code
hub / github.com/python/cpython / push

Method push

Lib/turtledemo/sorting_animate.py:43–49  ·  view source on GitHub ↗
(self, d)

Source from the content-addressed store, hash-verified

41 self.x = -150
42
43 def push(self, d):
44 width, _, _ = d.shapesize()
45 # align blocks by the bottom edge
46 y_offset = width / 2 * 20
47 d.sety(self.y + y_offset)
48 d.setx(self.x + 34 * len(self))
49 self.append(d)
50
51 def _close_gap_from_i(self, i):
52 for b in self[i:]:

Callers 1

init_shelfFunction · 0.95

Calls 4

shapesizeMethod · 0.80
setyMethod · 0.80
setxMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected