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

Method shift

Lib/turtledemo/colormixer.py:27–31  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

25 self.ondrag(self.shift)
26
27 def shift(self, x, y):
28 self.sety(max(0,min(y,1)))
29 self._color[self.x] = self.ycor()
30 self.fillcolor(self._color)
31 setbgcolor()
32
33def setbgcolor():
34 screen.bgcolor(red.ycor(), green.ycor(), blue.ycor())

Callers 5

iFunction · 0.45
plFunction · 0.45
bFunction · 0.45
test_named_parametersMethod · 0.45

Calls 4

setbgcolorFunction · 0.85
setyMethod · 0.80
ycorMethod · 0.80
fillcolorMethod · 0.80

Tested by 2

test_named_parametersMethod · 0.36