ó 6”þfc@s¦dZddlTddlmZedƒdd„Zd„Zd„Zd „Zd „Zd „Z d „Z d „Z d„Z e dkr¢e ƒZeGHeƒndS(sÚ turtle-example-suite: tdemo_clock.py Enhanced clock-program, showing date and time ------------------------------------ Press STOP to exit the program! ------------------------------------ iÿÿÿÿ(t*(tdatetimetlogoicCs0tƒt|ƒt|ƒt|ƒtƒdS(N(tpenuptrighttforwardtlefttpendown(tdistanztwinkel((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pytjumps    cCsjt|dƒtdƒt|dƒtdƒt|ƒtdƒt|ƒtdƒt|dƒdS(Ngffffffò?iZg@ix(tfdtrttlt(tlaengetspitze((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pythands      cCsKtƒt| dƒtƒt||ƒtƒtƒ}t||ƒdS(Ng333333Ã?(tresetR t begin_polyRtend_polytget_polytregister_shape(tnameRRt hand_form((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pytmake_hand_shape$s  cCstƒtdƒxitdƒD][}t|ƒ|ddkrZtdƒt| dƒntdƒt| ƒtdƒqWdS(Nii<iiiii(RtpensizetrangeR R tdotR (tradiusti((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pyt clockface.s     cCs2tdƒtdddƒtdddƒtdddƒtd ƒtƒatjdƒtjd d ƒtƒatjdƒtjd d ƒtƒatjdƒtjddƒxDtttfD]3}|j dƒ|j dddƒ|j dƒqÆWt ƒtƒa t j ƒt jƒt jdƒdS(NRt second_handi}it minute_handi‚t hour_handiZi tgray20tgray80tblue1tred1tblue3tred3tuseriiiiU(tmodeRRtTurtleRtshapetcolorR R!t resizemodet shapesizetspeedthttwritertputbk(R((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pytsetup;s.            cCs)dddddddg}||jƒS(NtMondaytTuesdayt WednesdaytThursdaytFridaytSaturdaytSunday(tweekday(ttt wochentag((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pyR>Ws c Cs^ddddddddd d d d g }|j}||jd }|j}d|||fS(NsJan.sFeb.sMar.sApr.tMaytJunetJulysAug.sSep.sOct.sNov.sDec.is%s %d %d(tyeartmonthtday(tztmonattjtmR=((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pytdatum\s   cCstjƒ}|j|jd}|j|d}|j|d}ttƒtj ƒtj ƒtj dƒtj t |ƒddddƒtjd ƒtj t|ƒddddƒtj d ƒttƒtjd |ƒtjd |ƒtjd |ƒttƒttdƒdS(Ngíµ ÷Æ°>gN@iAtaligntcentertfonttCourieritboldi–iUiiid(RMiRN(RMiRN(Rttodaytsecondt microsecondtminutethourttracertFalseR1tclearthomeRtwriteR>tbackRItTrueRt setheadingR R!tontimerttick(R=tsekundeRRtstunde((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pyR]ds(           cCs&ttƒtƒttƒtƒdS(Nt EVENTLOOP(RTRUR4RZR](((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pytmainzs   t__main__N(t__doc__tturtleRR)R RRRR4R>RIR]Rat__name__tmsgtmainloop(((s//usr/lib64/python2.7/Demo/turtle/tdemo_clock.pyt s