Package pygsear :: Module Path :: Class TurtlePath
[show private | hide private]
[frames | no frames]

Class TurtlePath

Path --+
       |
      TurtlePath


Method Summary
  __init__(self, position, deg)
  back(self, dist)
  forward(self, dist)
  get_deg(self)
  get_direction(self)
Return the direction from the previous location to the current location.
  left(self, deg)
  next(self)
A questionable hack to let Penguin exit in the middle of the demo.
  right(self, deg)
  set_deg(self, deg)
  set_direction(self, direction)
    Inherited from Path
  __iter__(self)
  get_position(self)
Return position along Path
  get_x(self)
return x component of position
  get_y(self)
return y component of position
  onscreen(self, slack)
true if path position is on main window
  pause(self)
stop moving along path
  reset(self)
put path back to original state
  set_endTime(self, duration)
Path will raise StopIteration after self.duration seconds
  set_position(self, position)
Set position and update positionOld
  unpause(self)
resume moving along path

Method Details

get_direction(self)

Return the direction from the previous location to the current location.
Overrides:
pygsear.Path.Path.get_direction (inherited documentation)

next(self)

A questionable hack to let Penguin exit in the middle of the demo.
Overrides:
pygsear.Path.Path.next

Generated by Epydoc 2.0 on Sat Dec 9 14:11:19 2006 http://epydoc.sf.net