V Qc@s7ddlTdefdYZeZejdS(i(t*tTestcBs/eZdZdZdZddZRS(cCs dGHdS(Nthi((tself((s@/usr/lib64/python2.7/Demo/tkinter/matt/canvas-with-scrollbars.pytprintit sc Cst|dd|_|jjt|ddddddd|j|_|jjd td tt|dd }|jd tt |d d dd dddd|_ t |dt |j _ t |dt|j _|j j j|j d<|j jj|j d<|j j|j j d<|j j|j jd<|j jddddd d|j jddddd d|j j jd td t|j jjd td t|j jd tdS(NttextsCan Find The BLUE Square??????tQUITt backgroundtredtheightitcommandtsidetfills0.25itwidtht5itwhitet scrollregionit20itorienttxscrollcommandtyscrollcommands3.5itblackt10is13.5itblue(iiRR(tLabeltquestiontpacktButtontquitRtBOTTOMtBOTHtFrametCanvastdrawt Scrollbart HORIZONTALtscrollXtVERTICALtscrollYtsettxviewtyviewtcreate_rectangletXtRIGHTtYtLEFT(Rtspacer((s@/usr/lib64/python2.7/Demo/tkinter/matt/canvas-with-scrollbars.pyt createWidgets s*  cGsdG|GH|jjjGHdS(Nt scrolling(R!R$tget(Rtargs((s@/usr/lib64/python2.7/Demo/tkinter/matt/canvas-with-scrollbars.pyt scrollCanvasX0s cCs+tj||tj||jdS(N(Rt__init__tPacktconfigR0(Rtmaster((s@/usr/lib64/python2.7/Demo/tkinter/matt/canvas-with-scrollbars.pyR55s N(t__name__t __module__RR0R4tNoneR5(((s@/usr/lib64/python2.7/Demo/tkinter/matt/canvas-with-scrollbars.pyRs  $ N(tTkinterRRttesttmainloop(((s@/usr/lib64/python2.7/Demo/tkinter/matt/canvas-with-scrollbars.pyts 2