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

Class Disc

Lib/turtledemo/minimal_hanoi.py:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14from turtle import *
15
16class Disc(Turtle):
17 def __init__(self, n):
18 Turtle.__init__(self, shape="square", visible=False)
19 self.pu()
20 self.shapesize(1.5, n*1.5, 2) # square-->rectangle
21 self.fillcolor(n/6., 0, 1-n/6.)
22 self.st()
23
24class Tower(list):
25 "Hanoi tower, a subclass of built-in type list"

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…