ok

Mini Shell

Direktori : /proc/thread-self/root/usr/lib64/python2.7/Demo/turtle/
Upload File :
Current File : //proc/thread-self/root/usr/lib64/python2.7/Demo/turtle/turtleDemo.pyo

�
цdc@scddlZddlZddlTddlmZddlmZddlmZddl	Z	ddl
Z
dZdZdZ
d	Zd
ZddefZdZdZd�Zd�Zd�Zd�Zdefd��YZedkr_e�ZeZxder[ydGHejj�Wq�e k
rKdGHe
j!d�dGHej"�q�e#Zq�Xq�WndS(i����N(t*(t
Percolator(tColorDelegator(t
TextVieweriiiiitArialitboldsLucida ConsoleitnormalcCs6tj�}dtj|�kr<dGHdG|GHtj�ngtj|�D]+}|jd�rL|jd�rL|^qL}g}x�|D]�}|jd�r�|j|�q�tjj	||�}tjj|�|g}gtj|�D]*}|jd�r�|jd�r�|^q�}|j||�q�W|S(Ns
turtleDemo.pys:Directory of turtleDemo must be current working directory!sBut in your case this isttdemo_s.pycs.py(
tostgetcwdtlistdirtsystexitt
startswithtendswithtappendtpathtjoin(tcwdtentrytentries1tentries2Rtsubdirtscripttscripts((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pytgetExampleEntriess(	

	cCsttjdd�dS(NsHelp on turtleDemosdemohelp.txt(Rtdemotroot(((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pytshowDemoHelp.scCsttjdd�dS(NsAbout turtleDemosabout_turtledemo.txt(RRR(((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyt
showAboutDemo1scCsttjdd�dS(NsAbout the new turtle modulesabout_turtle.txt(RRR(((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pytshowAboutTurtle4st
DemoWindowcBskeZdd�Zd�Zddd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�ZRS(
cCs�t�|_}t_|jd|j�t|dtdd�|_|jj	dt
�|j�|_|j
�|_|jj|j|j�|jd�t|�|_}t|�|_}t|dd�|_}t|dd	d
ddd
dd�|_}|j|d<|j	dtdt�t|dddt�|_}|j|d<|j	dtdt
�|j|d<|jdt �|jd|j�|j	dtdtdd�t!|ddd	ddddd.�|_"|j"j	dtdd dt
�|j	dtdt#dd �|j	dtdt#dd �t|�|_$}|tj%_tj&|d!d"d#d!�tj%_'tj(�|_)}	tj*j+|	|	j'�|	j'|_,|	gtj-_.|j,j	dt/dt#dd�t|dd$�|_0}
t1|
d	d%dt2d&d'd(d)d|j3�|_4|j4j	dtdt
dd�t1|
d	d*dt2d&d'd(d)d|j5�|_6|j6j	dtdt
dd�t1|
d	d+dt2d&d'd(d)d|j7�|_8|j8j	dtdt
dd�|j0j	dt/dt#dd �|j$j	dt/dt#dd�t9|�j:t;��t<|_=t<|_>|rZ|j?|�n|j@tAtBtBtBd,d-�tC|_DdS(/NtWM_DELETE_WINDOWtrelieftborderwidthitfillsPython turtle-graphics examplestnametvbarttexttpadxitwraptnonetwidthi-tcommandtsidethbartorienttyscrollcommandtfonttxscrollcommandtexpanditheights --- tbgs#ddfRiRii iXi�ids START tfgtwhitetdisabledforegrounds#feds STOP s CLEAR sChoose example from menutblack(RiR(EtTkRtturtlet_roottwm_protocolt_destroytFrametRAISEDtmBartpacktXtmakeLoadDemoMenutExamplesBtntmakeHelpMenut
OptionsBtnt
tk_menuBarttitlet
left_framet
text_framet	ScrollbarR%tTextR&tyviewtLEFTtYt
HORIZONTALR-txviewtBOTTOMtsettconfigttxtfonttLabelt
output_lbltBOTHtgraph_framet_ScreentScrolledCanvast_canvastScreentscreentTurtleScreent__init__tscanvast	RawTurtletscreenstTOPt	btn_frametButtontbtnfontt	startDemot	start_btntstopIttstop_btntclearCanvast	clear_btnRtinsertfilterRtFalsetdirtytexitflagtloadfilet	configGUItNORMALtDISABLEDtSTARTUPtstate(tselftfilenameRRIRJR%R&R-tg_framet_s_Re((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyR`9sp
	


!		
cCs|jj�tj�dS(N(RtdestroyRR(Rx((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyR=�s
ttbluecCs|jjd|�|jjd|�|tkrH|jjdd�n|jjdd�|jjd|�|tkr�|jjdd�n|jjdd�|jjd|�|jjd|�|tkr�|jjdd�n|jjdd�|jjd|d|�dS(NRwR4s#d00s#fcaR&R5(RDRTRiRtRkRmRW(Rxtmenutstarttstoptclearttxttcolor((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyRs�scsft�jdddddt�}|jdtdd�t|�|_xt�D]}�fd	�}t|t	�r�|jj
d
|dd!dddtd
||��qP|d|d}}t|j�|j_xR|D]J}|jjj
d
|dd!dddtd
|tj
j||���q�W|jjd
|dd|jjdt�qPW|j|d<|S(NR&tExamplest	underlineiR0R,R't2mcs��fd�}|S(Ncs�j��dS(N(Rr((Rxtx(s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pytemit�s((R�R�(Rx(R�s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pytloadexample�stlabelii����R+iR(t
MenubuttonR@tmenufontRARNtMenuRRt
isinstancetstrtadd_commandtchoicesRRRtadd_cascade(RxtCmdBtnRR�t_dirtentrieste((Rxs./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyRC�s"!%
( 
cCs�t|jdddddt�}|jdtdd�t|�|_|jjd	d
dtdt�|jjd	ddtdt	�|jjd	d
dtdt
�|j|d<|S(NR&tHelpR�iR0R,R'R�R�sAbout turtle.pyR+sturtleDemo - HelpsAbout turtleDemoR(R�R@R�RARNR�RR�RRR(RxR�((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyRE�s!
cCs'|js
dS|jj�t|_dS(N(RpR^R�Ro(Rx((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyt
refreshCanvas�s	
cCs�|j�tjj|�r�tjj|�r�t|d�}|j�}|j�|jj	dd�|jj
d|�tjj|�\}}|jj
|dd!d�t|d �|_t|j�|jttttdd�t|_ndS(	Ntrs1.0tendii����s# - a Python turtle graphics examplesPress start buttontred(R�RRtexiststisdirtopentreadtcloseR&tdeletetinserttsplitRRHt
__import__tmoduletreloadRsRtRutREADYRw(RxRytftcharstdirectfname((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyRr�s
%


cCs!|j�t|_ttj_|jttttdd�|j	j
�|j	jd�t|_
y4|jj�}|dkr�t|_
n	t|_
Wn#tjk
r�t|_
d}nX|j
tkr�|jtttt|�n7|j
tkrt|_|jttttdd�ndS(Nsdemo running...R8tstandardt	EVENTLOOPsstopped!suse mouse/keys or STOPR�(R�tTrueRpR:R_t_RUNNINGRsRuRtR^R�tmodetRUNNINGRwR�tmaintEVENTDRIVENtDONEt
TerminatorRq(Rxtresult((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyRh�s.
	

	
	

	cCs7|j�|jjdd�|jtttt�dS(NtcursorR}(R�RaRTRsRtRu(Rx((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyRl�s
cCsW|jrG|j�t|_|jttttdd�ttj_nttj_dS(NsSTOPPED!R�(	RqRlRoRsRtRuR:R_R�(Rx((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyRj�s	
	
N(
t__name__t
__module__tNoneR`R=RsRCRER�RrRhRlRj(((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyR7sJ							t__main__sENTERING mainloopsCRASH!!!- WAIT A MOMENT!g333333�?sGOING ON ..(sArialiR(sLucida Consoleisnormal($RRtTkintertidlelib.PercolatorRtidlelib.ColorDelegatorRtidlelib.textViewRR:ttimeRvR�R�R�R�RtR�RgRURRRRtobjectRR�RR�tRUNRtmainlooptAttributeErrortsleepR�tFALSE(((s./usr/lib64/python2.7/Demo/turtle/turtleDemo.pyt<module>sD
				�		




Zerion Mini Shell 1.0