Your IP : 216.73.216.196


Current Path : /opt/alt/python37/lib64/python3.7/turtledemo/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/turtledemo/__pycache__/clock.cpython-37.pyc

B

� f��@s�dZddlTddlmZddd�Zdd�Zdd	�Zd
d�Zdd
�Zdd�Zdd�Z	dd�Z
dd�Zedkr�e
d�e�Zee�e�dS)z�       turtle-example-suite:

             tdemo_clock.py

Enhanced clock-program, showing date
and time
  ------------------------------------
   Press STOP to exit the program!
  ------------------------------------
�)�*)�datetimecCs(t�t|�t|�t|�t�dS)N)Zpenup�right�forward�leftZpendown)ZdistanzZwinkel�r�5/opt/alt/python37/lib64/python3.7/turtledemo/clock.py�jumps
r	cCsXt|d�td�t|d�td�t|�td�t|�td�t|d�dS)Ngffffff�?�Zg@�x)�fd�rt�lt)�laenge�spitzerrr�handsrcCs>t�t|d�t�t||�t�t�}t||�dS)Ng333333�?)�resetr	Z
begin_polyrZend_polyZget_polyZregister_shape)�namerrZ	hand_formrrr�make_hand_shape"s
rcCsjt�td�xVtd�D]J}t|�|ddkrHtd�t|d�ntd�t|�td�qWdS)N��<�r���)rZpensize�ranger	r�dotr
)Zradius�irrr�	clockface+s
rcCs�td�tddd�tddd�tddd�td	�t�at�d�t�d
d�t�at�d�t�dd
�t�at�d�t�dd�x4tttfD]&}|�	d�|�
ddd�|�d�q�Wt�t�a
t
��t
��t
�d�dS)N�logo�second_hand�}r�minute_hand��	hour_handr
�Zgray20Zgray80Zblue1Zred1Zblue3Zred3�user�rr�U)�moderrZTurtler �shapeZcolorr"r$Z
resizemodeZ	shapesizeZspeedZht�writerZpuZbk)rrrr�setup8s.



r,cCsdddddddg}||��S)NZMondayZTuesdayZ	WednesdayZThursdayZFridayZSaturdayZSunday)Zweekday)�t�	wochentagrrrr.Ssr.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)�zZmonat�j�mr-rrr�datumXsr2cCs�t��}|j|jd}|j|d}|j|d}y�td�t��t�	�t�
d�tjt|�ddd�t�
d�tjt|�ddd�t�
d	�td
�t�d|�t�d|�t�d|�td
�ttd
�Wntk
r�YnXdS)Ng���ư>gN@F�A�center)ZCourier�Zbold)ZalignZfont�r(Tr��d)rZtoday�secondZmicrosecond�minuteZhour�tracerr+�clear�homer�writer.Zbackr2r Z
setheadingr"r$Zontimer�tickZ
Terminator)r-Zsekunder:Zstunderrrr?`s.






r?cCs td�t�td�t�dS)NFTZ	EVENTLOOP)r;r,r?rrrr�mainys
r@�__main__rN)r)�__doc__Zturtlerr	rrrr,r.r2r?r@�__name__r)�msg�printZmainlooprrrr�<module>s