;ò òiýDc@s@dkZdklZdfd„ƒYZdfd„ƒYZdS(N(s gBlinkRatesAnimationCommandcBs)tZeed„Zd„Zd„ZRS(NcCs1||_||_||_||_||_dS(N(stargetsselfsmethodsargss undo_methods undo_args(sselfsmethodstargetsargss undo_methods undo_args((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pys__init__*s     cCst|i|i|iƒdS(N(sapplysselfsmethodstargetsargs(sself((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysDo3scCsL|itjot|i|i|iƒnt|i|i|iƒdS(N(sselfs undo_methodsNonesapplysmethodstargets undo_args(sself((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysUndo6s(s__name__s __module__sNones__init__sDosUndo(((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysAnimationCommand(s sAnimationHistorycBs•tZdZd„Zd„Zd„Zed„Zed„Zd„Z dd„Z d „Z d „Z d „Z d „Zd „Zd„Zd„ZRS(sEAnimationHistory provides a history of animation commands, and a undo and redo facility. It is to be used as a wrapper around a GraphDisplay and it will happily dispatch all calls to GraphDisplay. Animation commands for which undo/redo is provided, have to be methods of AnimationHistory cCs||_g|_t|_dS(N(sanimatorsselfshistorysNones history_index(sselfsanimator((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pys__init__Es  cCsNt|ii|f|fd|ii|ƒfƒ}|iƒ|i |ƒdS(Ns undo_args( sAnimationCommandsselfsanimatorsSetVertexColorsvscolorsGetVertexColors animationsDosappend(sselfsvscolors animation((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysSetVertexColorKs cCsTt|ii||f|fd|ii||ƒfƒ}|i ƒ|i |ƒdS(Ns undo_args( sAnimationCommandsselfsanimators SetEdgeColorstailsheadscolors GetEdgeColors animationsDosappend(sselfstailsheadscolors animation((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pys SetEdgeColorUs cCs9t|ii|f|fƒ}|iƒ|i|ƒdS(N( sAnimationCommandsselfsanimators BlinkVertexsvscolors animationsDosappend(sselfsvscolors animation((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pys BlinkVertex\s cCs<t|ii||f|fƒ}|iƒ|i |ƒdS(N( sAnimationCommandsselfsanimators BlinkEdgestailsheadscolors animationsDosappend(sselfstailsheadscolors animation((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pys BlinkEdgebs! cCsNt|ii|f|fd|ii|ƒfƒ}|iƒ|i |ƒdS(Ns undo_args( sAnimationCommandsselfsanimatorsSetVertexFrameWidthsvsvalsGetVertexFrameWidths animationsDosappend(sselfsvsvals animation((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysSetVertexFrameWidthis sblackcCsNt|ii|f|fd|ii|ƒfƒ}|iƒ|i |ƒdS(Ns undo_args( sAnimationCommandsselfsanimatorsSetVertexAnnotationsvs annotationsGetVertexAnnotations animationsDosappend(sselfsvs annotationscolors animation((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysSetVertexAnnotationps cCsTt|i|ƒ}t|ƒo#||_||_t|dƒSn|ii|SdS(Nscaller( sgetattrsselfsanimatorsargstmpscallables methodNamesmethods__dict__(sselfsargstmp((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pys __getattr__ys    cGst|i|ƒSdS(N(sapplysselfsmethodsargs(sselfsargs((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pyscaller„scCsi|itjot|iƒd|_n|idjo+|i|idiƒ|id8_ndS(Nii(sselfs history_indexsNoneslenshistorysUndo(sself((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysUndo‰s cCsi|itjodSn|it|iƒjo t|_n(|i|idiƒ|id7_dS(Ni(sselfs history_indexsNoneslenshistorysDo(sself((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysDo‘s  cCsL|itj o8x(|i|iD]\}}|iƒq!Wt|_ndS(N(sselfs history_indexsNoneshistorystimescmdsDo(sselfscmdstime((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysDoAllšs  cCsët|iƒdjoÑ|iddiƒ|iiƒ|iiidtƒ|iddi ƒ|iiƒ|iiidtƒ|iddiƒ|iiƒ|iiidtƒ|iddi ƒ|iiƒndS(Niiÿÿÿÿi ( slensselfshistorysUndosanimatorsupdatescanvassafters gBlinkRatesDo(sself((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysReplay¡s   cCs |iitiƒ|fƒdS(N(sselfshistorysappendstimes animation(sselfs animation((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysappend¯s(s__name__s __module__s__doc__s__init__sSetVertexColors SetEdgeColorsNones BlinkVertexs BlinkEdgesSetVertexFrameWidthsSetVertexAnnotations __getattr__scallersUndosDosDoAllsReplaysappend(((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pysAnimationHistory=s          (stimes GatoGlobalss gBlinkRatesAnimationCommandsAnimationHistory(sAnimationHistorys gBlinkRatesAnimationCommandstime((s=/mnt/gmirror/ports/math/py-gato/work/Gato/AnimationHistory.pys?%s