^c@s7ddlTdefdYZeZejdS(i(t*tTestcBs/eZdZdZdZddZRS(cCs dGHdS(Nthi((tself((sC/usr/lib64/python2.7/Demo/tkinter/matt/animation-w-velocity-ctrl.pytprintit sc Cst|ddddd|j|_|jjdtdtt|dd d d |_t|d t d d dd|_ |j jdtdt |jj dddddddd|jjdt dS(NttexttQUITt foregroundtredtcommandtsidetfilltwidtht5itheighttorienttfrom_ittoidii ttagstthingtblue(tButtontquitRtpacktBOTTOMtBOTHtCanvastdrawtScalet HORIZONTALtspeedtXtcreate_rectangletLEFT(R((sC/usr/lib64/python2.7/Demo/tkinter/matt/animation-w-velocity-ctrl.pyt createWidgets s!%cGsY|jj}t|d}d|f}|jjd|||jd|jdS(Ng@@s%riRi (RtgettfloatRtmovetaftert moveThing(Rtargstvelocitytstr((sC/usr/lib64/python2.7/Demo/tkinter/matt/animation-w-velocity-ctrl.pyR's  cCs>tj||tj||j|jd|jdS(Ni (tFramet__init__tPacktconfigR"R&R'(Rtmaster((sC/usr/lib64/python2.7/Demo/tkinter/matt/animation-w-velocity-ctrl.pyR,#s  N(t__name__t __module__RR"R'tNoneR,(((sC/usr/lib64/python2.7/Demo/tkinter/matt/animation-w-velocity-ctrl.pyR s   N(tTkinterR+Rttesttmainloop(((sC/usr/lib64/python2.7/Demo/tkinter/matt/animation-w-velocity-ctrl.pyts !