V Qc@s7ddlTdefdYZeZejdS(i(t*tTestcBs/eZdZdZdZddZRS(cCs dGHdS(Nthi((tself((s@/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-simple.pytprintitscCs/t}t|dd|_|jjdS(NttextsHere's a new window(tTopleveltLabeltlabeltpack(Rtfred((s@/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-simple.pyt makeWindow s cCsrt|ddddd|j|_|jjdtdtt|ddd|j|_|jjdtdS( NRtQUITt foregroundtredtcommandtsidetfillsMake a New Window(tButtontquitR R tLEFTtBOTHR thi_there(R((s@/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-simple.pyt createWidgetss cCs+tj||tj||jdS(N(tFramet__init__tPacktconfigR(Rtmaster((s@/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-simple.pyRs N(t__name__t __module__RR RtNoneR(((s@/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-simple.pyRs   N(tTkinterRRttesttmainloop(((s@/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-simple.pyts