Viewing File: /usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyo

ó
—sjc@s_dZddlTddd„Zddd„Zd„Zedkr[eƒZeGHeƒndS(	sÌ       turtle-example-suite:

            tdemo_paint.py

A simple  eventdriven paint program

- use left mouse button to move turtle
- middle mouse button to change color
- right mouse button do turn filling on/off
 -------------------------------------------
 Play around by clicking into the canvas
 using all three mouse buttons.
 -------------------------------------------
          To exit press STOP button
 -------------------------------------------
iÿÿÿÿ(t*icCs0tƒdrtƒtƒntƒtƒdS(Ntpendown(tpentend_filltuptdownt
begin_fill(txty((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pytswitchupdowns


cCs$tdtd attdƒdS(Nii(tcolorstcolor(RR((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pytchangecolorscCsztdƒtdƒtdƒtdƒddddgattd	ƒtƒttd
ƒtt	dƒttdƒdS(
Ntcircletusergà?itredtgreentbluetyellowiiit	EVENTLOOP(
tshapet
resizemodet	shapesizetwidthR
RR	t
onscreenclicktgotoR(((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pytmain!s






t__main__N(t__doc__tturtleR	RRt__name__tmsgtmainloop(((s//usr/lib64/python2.7/Demo/turtle/tdemo_paint.pyt<module>s
		
Back to Directory File Manager