^c@sddlTddlZddlZddlZddlZdZdZdZdZdZ dZ dZ da d Z d ZedS( i(t*Nii,i itredicCst}tjtdt}tjtdt}|j||||||||dt}xvtstjdt }tjdt }tj t }y|j |||Wnt k rPnXtj|qcWdS(Ng@tfilli(tRADIUStrandomtgausstWIDTHtSIGMAtHEIGHTt create_ovaltFILLtstoptBUZZt expovariatetLAMBDAtmovetTclErrorttimetsleep(tcanvastrtxtytptdxtdytdt((s3/usr/lib64/python2.7/Demo/tkinter/guido/brownian.pytparticles.  cCst}t|dtdt}|jddddd}tjdr`ttjd}nx9t|D]+}t j dt d |f}|j qmWz|j WddaXdS( NtwidththeightRtbothtexpandiittargettargs(tTktCanvasRRtpacktsystargvtinttranget threadingtThreadRtstarttmainloopR (trootRtnptitt((s3/usr/lib64/python2.7/Demo/tkinter/guido/brownian.pytmain"s  (tTkinterRR)RR%RRRR RRR R RR1(((s3/usr/lib64/python2.7/Demo/tkinter/guido/brownian.pyts