Home | Trees | Index | Help |
---|
Package pygsear :: Module Path :: Class RandomOnscreen |
|
Path
--+
|
RandomOnscreen
Move to random locations on screen.
Can also move to random spot inside of box defined by xMin, yMin, xMax, xMax.
stayMax tells how many times the Path will return the same location before moving again. If stayMax == -1 will stay put until the next call to randomMove()Method Summary | |
---|---|
__init__(self,
duration,
xMin,
yMin,
xMax,
yMax,
stay)
| |
return position | |
Inherited from Path | |
| |
Return the direction from the previous location to the current location. | |
Return position along Path | |
return x component of position | |
return y component of position | |
true if path position is on main window | |
stop moving along path | |
put path back to original state | |
Path will raise StopIteration after self.duration seconds | |
Set position and update positionOld | |
resume moving along path |
Method Details |
---|
next(self)return position
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sat Dec 9 14:11:19 2006 | http://epydoc.sf.net |