ó ŋœ^c@s7ddlTdefd„ƒYZeƒZejƒdS(iĸĸĸĸ(t*tTestcBs8eZd„Zd„Zd„Zd„Zdd„ZRS(cCs dGHdS(Nthi((tself((s9/usr/lib64/python2.7/Demo/tkinter/matt/canvas-gridding.pytprintit sc Cs{t|ddddddddd |jƒ|_|jjd td tƒt|d d dd ƒ|_|jjd tƒdS(NttexttQUITt backgroundtredt foregroundtwhitetheightitcommandtsidetfilltwidtht5i( tButtontquitRtpacktBOTTOMtBOTHtCanvast canvasObjecttLEFT(R((s9/usr/lib64/python2.7/Demo/tkinter/matt/canvas-gridding.pyt createWidgets scCs@|jj|j|jƒ|_|jj|j|jƒ|_dS(N(Rtcanvasxtxt griddingSizetstartxtcanvasytytstarty(Rtevent((s9/usr/lib64/python2.7/Demo/tkinter/matt/canvas-gridding.pyt mouseDownscCsĒ|jj|j|jƒ}|jj|j|jƒ}|j|jkrž|j|jkrž|jj|j ƒ|jj |j|j||ƒ|_ |j ƒndS(N( RRRRRRRR tdeletet rubberbandBoxtcreate_rectangletupdate_idletasks(RR!RR((s9/usr/lib64/python2.7/Demo/tkinter/matt/canvas-gridding.pyt mouseMotions$ cCsotj||ƒtj|ƒ|jƒd|_d|_tj |j d|j ƒtj |j d|j ƒdS(Ni2s s( tFramet__init__tPacktconfigRtNoneR$RtWidgettbindRR"R'(Rtmaster((s9/usr/lib64/python2.7/Demo/tkinter/matt/canvas-gridding.pyR),s    N(t__name__t __module__RRR"R'R,R)(((s9/usr/lib64/python2.7/Demo/tkinter/matt/canvas-gridding.pyRs    N(tTkinterR(Rttesttmainloop(((s9/usr/lib64/python2.7/Demo/tkinter/matt/canvas-gridding.pyts 3