Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
turtledemo.minimal_hanoi.Tower Class Reference

List of all members.

Public Member Functions

def __init__
def push
def pop

Public Attributes

 x

Detailed Description

Definition at line 30 of file minimal_hanoi.py.


Constructor & Destructor Documentation

def turtledemo.minimal_hanoi.Tower.__init__ (   self,
  x 
)

Definition at line 32 of file minimal_hanoi.py.

00032 
00033     def __init__(self, x):
00034         "create an empty tower. x is x-position of peg"
        self.x = x

Here is the caller graph for this function:


Member Function Documentation

Definition at line 39 of file minimal_hanoi.py.

00039 
00040     def pop(self):
00041         d = list.pop(self)
00042         d.sety(150)
00043         return d

def turtledemo.minimal_hanoi.Tower.push (   self,
  d 
)

Definition at line 35 of file minimal_hanoi.py.

00035 
00036     def push(self, d):
00037         d.setx(self.x)
00038         d.sety(-150+34*len(self))
        self.append(d)

Here is the call graph for this function:


Member Data Documentation

Definition at line 34 of file minimal_hanoi.py.


The documentation for this class was generated from the following file: