OwlCyberSecurity - MANAGER
Edit File: clock.cpython-38.opt-1.pyc
U ����e5d�����������������������@���s����d�Z�ddlT�ddlmZ�ddd�Zdd��Zdd ��Zd d��Zdd ��Zdd��Zdd��Z dd��Z dd��Zedkr�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! ------------------------------------ �����)�*)�datetimec�����������������C���s(���t����t|��t|���t|��t���d�S�)N)Zpenup�right�forward�leftZpendown)ZdistanzZwinkel��r����(/usr/lib64/python3.8/turtledemo/clock.py�jump���s ����r ���c�����������������C���sX���t�|�d���td��t�|d���td��t�|��td��t�|��td��t�|d���d�S�)Ngffffff�?�Z���g�������@�x���)�fd�rt�lt)�laenge�spitzer���r���r����hand���s����r���c�����������������C���s>���t����t|�d���t���t||��t���t��}t|�|��d�S�)Ng333333�?)�resetr ���Z begin_polyr���Zend_polyZget_polyZregister_shape)�namer���r���Z hand_formr���r���r����make_hand_shape"���s���� r���c�����������������C���sf���t����td��td�D�]J}t|���|d�dkrFtd��t|��d���ntd��t|����td��qd�S�)N�����<�������r���������������)r���Zpensize�ranger ���r����dotr ���)Zradius�ir���r���r���� clockface+���s���� r���c������������������C���s����t�d��tddd��tddd��tddd��td ��t��at�d��t�d d��t��at�d��t�dd ��t��at�d��t�dd��tttfD�]&}�|�� d��|�� ddd��|��d��q�t���t��a t ����t ����t �d��d�S�)N�logo�second_hand�}���r����minute_hand����� hour_handr �������Zgray20Zgray80Zblue1Zred1Zblue3Zred3�user����r���r����U���)�moder���r���ZTurtler ����shapeZcolorr"���r$���Z resizemodeZ shapesizeZspeedZht�writerZpuZbk)r���r���r���r����setup8���s.���� r,���c�����������������C���s���dddddddg}||������S�)NZMondayZTuesdayZ WednesdayZThursdayZFridayZSaturdayZSunday)Zweekday)�t� wochentagr���r���r���r.���S���s��������r.���c�����������������C���sD���ddddddddd d ddg}|�j�}||�jd ��}|�j}d|||f�S�)NzJan.zFeb.zMar.zApr.ZMayZJuneZJulyzAug.zSep.zOct.zNov.zDec.r'���z%s %d %d)ZyearZmonthZday)�zZmonat�j�mr-���r���r���r����datumX���s����������r2���c������������������C���s����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 ��W�n�tk r����Y�nX�d�S�)Ng���ư>g������N@F�A����center)ZCourier����Zbold)ZalignZfont����r(���Tr��������d���)r���Ztoday�secondZmicrosecond�minuteZhour�tracerr+����clear�homer����writer.���Zbackr2���r ���Z setheadingr"���r$���Zontimer�tickZ Terminator)r-���Zsekunder:���Zstunder���r���r���r?���`���s6���� �� �� r?���c�������������������C���s ���t�d��t���t�d��t���dS�)NFTZ EVENTLOOP)r;���r,���r?���r���r���r���r����mainy���s ����r@����__main__r���N)r���)�__doc__Zturtler���r ���r���r���r���r,���r.���r2���r?���r@����__name__r)����msg�printZmainloopr���r���r���r����<module>���s ���