V Qc@s7ddlTdefdYZeZejdS(i(t*tTestcBsAeZdZdZdZdZdZddZRS(c Cs|jjts|jj|jd|jd|jd|jddddt}|jj|d|j|jj|d|j n|j|_ |j|_ dS(Ni tfilltgreenttagss s ( twidgett find_withtagtCURRENTtdrawt create_ovaltxtyttag_bindt mouseEntert mouseLeavetlastxtlasty(tselfteventtfred((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyt mouseDown s + cCsF|jjt|j|j|j|j|j|_|j|_dS(N(RtmoveRR RR R(RR((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyt mouseMoves* cCs|jjtdddS(NRtred(Rt itemconfigR(RR((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyR $scCs|jjtdddS(NRtblue(RRR(RR((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyR)scCst|ddddd|j|_|jjdtdtt|dd d d |_|jjdttj |jd |j tj |jd |j dS( NttexttQUITt foregroundRtcommandtsideRtwidtht5itheights<1>s ( tButtontquitRtpacktLEFTtBOTHtCanvasRtWidgettbindRR(R((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyt createWidgets.scCs+tj||tj||jdS(N(tFramet__init__tPacktconfigR*(Rtmaster((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyR,8s N( t__name__t __module__RRR RR*tNoneR,(((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyRs      N(tTkinterR+Rttesttmainloop(((sC/usr/lib64/python2.7/Demo/tkinter/matt/canvas-moving-or-creating.pyts 7