MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / show_pivot

Method show_pivot

tools/python-3.11.9-amd64/Tools/demo/sortvisu.py:150–152  ·  view source on GitHub ↗
(self, pivot)

Source from the content-addressed store, hash-verified

148 self.canvas.coords(self.right, (0, 0, 0, 0))
149
150 def show_pivot(self, pivot):
151 x1, y1, x2, y2 = self.items[pivot].position()
152 self.canvas.coords(self.pivot, (0, y1 - 2, 9999, y1 - 2))
153
154 def hide_pivot(self):
155 self.canvas.coords(self.pivot, (0, 0, 0, 0))

Callers 1

quicksortFunction · 0.80

Calls 2

positionMethod · 0.45
coordsMethod · 0.45

Tested by

no test coverage detected