AlkantarClanX12

Your IP : 3.147.68.201


Current Path : /lib64/python3.8/turtledemo/__pycache__/
Upload File :
Current File : //lib64/python3.8/turtledemo/__pycache__/clock.cpython-38.opt-2.pyc

U

e5d��@s�ddlTddlmZddd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Zdd�Zdd�Z	dd�Z
edkr�ed�e
�Z
ee
�e�dS)�)�*)�datetimecCs(t�t|�t|�t|�t�dS)N)Zpenup�right�forward�leftZpendown)ZdistanzZwinkel�r�(/usr/lib64/python3.8/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
rcCsft�td�td�D]J}t|�|ddkrFtd�t|d�ntd�t|�td�qdS)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�tttfD]&}|�	d�|�
ddd�|�d�q�t�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}z�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?`s6

�

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