From: Kevin A. <ka...@us...> - 2004-05-11 14:35:26
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10470 Modified Files: turtle.py Log Message: renamed saveState and restoreState to save and restore Index: turtle.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/turtle.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** turtle.py 11 May 2004 13:03:56 -0000 1.19 --- turtle.py 11 May 2004 14:35:16 -0000 1.20 *************** *** 312,316 **** self._position = self._origin self._angle = 0.0 ! # used for saveState and restoreState methods self._savePosition = self._position self._saveAngle = self._angle --- 312,316 ---- self._position = self._origin self._angle = 0.0 ! # used for save and restore methods self._savePosition = self._position self._saveAngle = self._angle *************** *** 365,374 **** # perhaps the turtle color, whether it is shown or not? ! def saveState(self): """save the current turtle position and heading""" self._savePosition = self._position self._saveAngle = self._angle ! def restoreState(self): """restore the turtle position and heading to the last saved state""" self.moveTo(self._savePosition[0], self._savePosition[1]) --- 365,374 ---- # perhaps the turtle color, whether it is shown or not? ! def save(self): """save the current turtle position and heading""" self._savePosition = self._position self._saveAngle = self._angle ! def restore(self): """restore the turtle position and heading to the last saved state""" self.moveTo(self._savePosition[0], self._savePosition[1]) |