ó ¿œ^c@sÚddlZddlZdZd„Zd„Zd„Zd„Zd„Zd„Zd „Z d „Z d „Z d „Z d „Z d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZejeƒdS(iÿÿÿÿNs Thomas Gellekum cCsVtjƒrR|d}tj||tƒ|jtjƒ|jtj|ƒƒndS(Ni(tcursest has_colorst init_pairtmy_bgtattrofftA_COLORtattront color_pair(twintcolortn((s(/usr/lib64/python2.7/Demo/curses/xmas.pyt set_colors   cCs)tjƒr%|jtjdƒƒndS(Ni(RRtattrsetR(R((s(/usr/lib64/python2.7/Demo/curses/xmas.pyt unset_color&s cCs=tj|ƒtjƒdkr9tjƒtjdƒndS(Niÿÿÿÿi(Rtnapmststdscrtgetchtbeeptsystexit(tmsecs((s(/usr/lib64/python2.7/Demo/curses/xmas.pytlook_out*s  cCsx0tddƒD]}tj|dtdƒƒqWx0tddƒD]}tjd|tdƒƒqCWx0tddƒD]}tjd |tdƒƒqvWdS( Niiit|iiPit_i(trangeRtaddchtord(tytx((s(/usr/lib64/python2.7/Demo/curses/xmas.pytboxit0scCsÌtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjd dtd ƒƒtjd dtd ƒƒtjd dtdƒƒtjddtdƒƒdS(NiitSitEitAi i tOitNit'i(RRR(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytseas<scCsåtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtd ƒƒtjd dtd ƒƒtjd dtd ƒƒtjddtdƒƒtjddtdƒƒdS(NiitGtRiRi i tTi tIiR"iiR(RRR(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytgreetHscCstjddtƒdS(Nii (RtaddstrtFROMWHO(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytfromwhoUscCs'tttjƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjd dtdƒƒtjd d tdƒƒtjd d tdƒƒtjd d tdƒƒtjdd tdƒƒtjdd tdƒƒtjddtdƒƒtjd dtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjd dtdƒƒtjd dtdƒƒtjd dtdƒƒtjd dtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjd dtdƒƒtjddtdƒƒtjddtdƒƒtjd d tdƒƒtjd dtdƒƒtjdddƒtjdddƒtjdddƒttƒtjƒt jƒdS(Nii t/iii ii iiiii i s\iiiiiiiiRis//////////// \\\\\\\\\\\\s| |s|_|( R ttreescrnRt COLOR_GREENRRR*R trefresht w_del_msg(((s(/usr/lib64/python2.7/Demo/curses/xmas.pyttreeYsH   cCsÏtjtƒtttjƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjdd tdƒƒtjdd tdƒƒtjd d tdƒƒtjd d tdƒƒtjddtdƒƒtjdd tdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtdƒƒttƒtj ƒt j ƒdS(Nii t@iiiiiiiiiii ii iii ii( R.toverlayt treescrn2R Rt COLOR_BLUERRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytballs…s,    cCsltjtjtjBƒtttjƒtjddtdƒƒtj ƒt tƒtj ƒt j ƒdS(Nii t*( R5R RtA_BOLDtA_BLINKR t COLOR_YELLOWRRtstandendR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstarŸs    cCs«tjtjtjBƒtttjƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtj tjtjBƒt tƒtj ƒt j ƒdS(Nii s'i t:i t.( R5R RR9R:R t COLOR_WHITERRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng1«s   cCsötjtjtjBƒtttjƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtd ƒƒtjd d tdƒƒtjd d tdƒƒtj tjtjBƒt tƒtj ƒt j ƒdS( Niis'i R>i R?i t,ii i ( R5R RR9R:R R@RRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng2ºs   cCs(tjtjtjBƒtttjƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtd ƒƒtjd d tdƒƒtjd d tdƒƒtjd d tdƒƒtjd dtd ƒƒtj tjtjBƒt tƒtj ƒt j ƒdS(Niis'iR>iR?i RBii i i i ( R5R RR9R:R R@RRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng3Ìs   cCs¥tjtjtjBƒtttjƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtd ƒƒtjd d tdƒƒtjd d tdƒƒtjd d tdƒƒtjd d td ƒƒtjd dtdƒƒtjd dtdƒƒtjd dtdƒƒtjd dtd ƒƒtjd dtdƒƒtj tjtjBƒt tƒtj ƒt j ƒdS(Ni is'iR>iR?iRBi i i i iiii( R5R RR9R:R R@RRRR R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng4às(   cCs5tjtjtjBƒtttjƒtjddtdƒƒtjddtdƒƒtjddtdƒƒtjddtd ƒƒtjd d tdƒƒtjd d tdƒƒtjd d tdƒƒtjd d td ƒƒtj tjtjBƒt tƒtj t ƒtj ƒtj ƒdS(Ni is'iR>iR?iRBi iii (R5R RR9R:R R@RRRR R4R.R0R1(((s(/usr/lib64/python2.7/Demo/curses/xmas.pytstrng5ùs     cCsEtjƒxtdƒD]}|dkrNtjtƒtjƒtjƒPnÄ|dkrtjtƒtjƒtjƒPn“|dkr°tjtƒtjƒtjƒPnb|dkrát jtƒtjƒtjƒPn1|dkrt jtƒtjƒtjƒPntjƒqWt jtƒtjƒtjƒdS(Niiiiii( t treescrn8ttouchwinRt treescrn3R4R0R1t treescrn4t treescrn5t treescrn6t treescrn7R.(tcycle((s(/usr/lib64/python2.7/Demo/curses/xmas.pytblinkits@                        cCs2|j||ƒ|jƒtjƒtdƒdS(Ni(tmvwinR0R1R(RRR((s(/usr/lib64/python2.7/Demo/curses/xmas.pyt deer_step7s  cCskd}xžtdddƒD]Š}|dkr4d}nxltddƒD][}tj||tdƒƒtjƒtjƒtjƒtjƒtjƒtd ƒqDWqWd }xþt|dd dƒD]æ}xÝtddƒD]Ì}|d kr[d }ytj||td ƒƒWnt j k r%nXtjƒtjƒtjƒtjƒtjƒqÚtj||td ƒƒtjƒtjƒtjƒtjƒtjƒqÚWqÄWd}xÇtd dƒD]¶}t j ƒt jƒtjƒxtddƒD]~}t t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt j ƒt jƒtjƒ|d 8}qøWqÄWd}xÄtddƒD]³}tj ƒtjƒtjƒxŒtd ƒD]~}t t||ƒt t||ƒt t||ƒt t||ƒt t||ƒtj ƒtjƒtjƒ|d 8}qÅWq”Wtdƒd}x—tddƒD]†}t t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt t||ƒqkW|d8}x‡tddƒD]v}t t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt t||ƒqWt t||ƒx±t|dƒD] }x‡tdd ƒD]v}t t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt t||ƒt t||ƒq¿Wt t||ƒq©W|d8}t t||ƒdS(NiiFi>iÿÿÿÿiBiiR?i2ii8iR8i:ii#i i,iii(Rtdotdeer0RRR0R1teraseRt stardeer0Rterrortlildeer0RHRQtlildeer3tlildeer2tlildeer1tmiddeer0tmiddeer3tmiddeer2tmiddeer1tbigdeer4tbigdeer3tbigdeer2tbigdeer1tbigdeer0t lookdeer4t lookdeer3t lookdeer2t lookdeer1t lookdeer0(ty_postx_postlooper((s(/usr/lib64/python2.7/Demo/curses/xmas.pytreindeer=sÀ                               cCs=|atjatjddddƒatjddddƒatjddddƒatjddddƒatjddddƒa tjddddƒa tjddddƒa tjddddƒa tjddddƒa tjdd ddƒatjd dddƒatjd dddƒatjd dddƒatjd dddƒatjd d ddƒatjdd ddƒatjdd ddƒatjdd ddƒatjddddƒatjddddƒatjddddƒatjddddƒatjddddƒatjddddƒatjddddƒatjddddƒatjddddƒatjddddƒa tjddddƒa!tjddddƒa"yt"j#ddd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ddt&dEƒƒt j%d1d"t&dEƒƒt j%d1dt&dEƒƒt j%dFdFt&dEƒƒtj:t ƒt j%dd t&dEƒƒt j%d"d t&dEƒƒt j%d d&t&dEƒƒt j%ddt&dEƒƒt j%d1d+t&dEƒƒt j%ddFt&dGƒƒt j%ddFt&dEƒƒt j%d dHt&dEƒƒt j%d"d/t&dEƒƒt j%d d t&dEƒƒt j%dd1t&dEƒƒt j%d/dt&dEƒƒt j%ddFt&dEƒƒt j%d1dt&dEƒƒt j%d1d&t&dEƒƒt j%dFdIt&dEƒƒt-dDƒt=ƒt!j+ƒt!j,ƒt"j,ƒt-dJƒxt>ddƒD] }t?ƒq$WqNWdS(KNiiii5iGiiii8iiii*i iiiii<sHit any key to quitsH A P P Y H O L I D A Y StVR3tt~RRt0t(t=it)is\R-iiiRt^iis^~~~~~~~~// ~~Us ( \_____( /s( ) /i s\\ /i s\>/>s (( )____( /s( / |s\/ |s|> |>s ( ()_____( /s / / /s |/ \s/> \>s ( )______( /s (/ \sv___= ----^s \/ \/s\Y/ \Y/s\=/s^\o o/^s//( )s^~~~~~~~~// \O/i–t i R8i iiô(@RRt COLOR_BLACKRtnewwinR.R5RIRJRKRLRMRGRRRTRVRYRXRWRZR]R\R[RbRaR`R_R^RgRfReRdRct w_holidayR1R*RURRtcbreaktnodelaytclearRSRHR0RRR$R)R,R2R7R=RARCRDRERFR4tstandoutR<RkRRO(Rti((s(/usr/lib64/python2.7/Demo/curses/xmas.pytmain·s¢                                     (RRR+R R RRR$R)R,R2R7R=RARCRDRERFRORQRkR~twrapper(((s(/usr/lib64/python2.7/Demo/curses/xmas.pyts.       ,       '  z ÿÔ