V Qc@s7ddlTdefdYZeZejdS(i(t*tTestcBs/eZdZdZdZddZRS(cCs dGHdS(Nthi((tself((s>/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-more.pytprintitscCsOt}t|dd|jd|j|_|jj|jd|_dS(NttextsThis is window number %d.tcommandi(tTopleveltButtont windownumt makeWindowtlabeltpack(Rtfred((s>/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-more.pyR s     cCsrt|ddddd|j|_|jjdtdtt|ddd|j|_|jjdtdS( NRtQUITt foregroundtredRtsidetfillsMake a New Window(RtquitRR tLEFTtBOTHR thi_there(R((s>/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-more.pyt createWidgetss cCs4tj||tj|d|_|jdS(Ni(tFramet__init__tPacktconfigR R(Rtmaster((s>/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-more.pyRs  N(t__name__t __module__RR RtNoneR(((s>/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-more.pyRs   N(tTkinterRRttesttmainloop(((s>/usr/lib64/python2.7/Demo/tkinter/matt/window-creation-more.pyts