^c@sddlTddlZddlZdZdZdZdZdZdZdZ da da d Z d Zd Zed krendS( i(t*Nii,i itrediccst}tjtdt}tjtdt}|j||||||||dt}x_tstjdt }tjdt }y|j |||Wnt k rPqcXdVqcWdS(Ng@tfilli( tRADIUStrandomtgausstWIDTHtSIGMAtHEIGHTt create_ovaltFILLtstoptBUZZtmovetTclErrortNone(tcanvastrtxtytptdxtdy((s4/usr/lib64/python2.7/Demo/tkinter/guido/brownian2.pytparticles.  cCs:|jtjt}tjt|dt|dS(Ni(tnextRt expovariatetLAMBDAtroottaftertintR (Rtdt((s4/usr/lib64/python2.7/Demo/tkinter/guido/brownian2.pyR "s cCstattdtdt}|jddddd}tjdr`ttjd}nx$t |D]}t t |qmWztj Wdda XdS(NtwidththeightRtbothtexpandii(tTkRtCanvasRRtpacktsystargvRtrangeR RtmainloopR (Rtnpti((s4/usr/lib64/python2.7/Demo/tkinter/guido/brownian2.pytmain's  t__main__(tTkinterRR&RRRR RRR R RRRR R,t__name__(((s4/usr/lib64/python2.7/Demo/tkinter/guido/brownian2.pyts