V Qc@sGddlTddlmZdefdYZeZejdS(i(t*(tDialogtTestcBs/eZdZdZdZddZRS(cCs dGHdS(Nthi((tself((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pytprintitsc Cs1t|ddddddddd d }|jS( sCreate a top-level dialog with some buttons. This uses the Dialog class, which is a wrapper around the Tcl/Tk tk_dialog script. The function returns 0 if the user clicks 'yes' or 1 if the user clicks 'no'. ttitlesfred the dialog boxttextsclick on a choicetbitmaptinfotdefaultitstringstyestno(syesR (Rtnum(Rtd((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt makeWindow s cCsrt|ddddd|j|_|jjdtdtt|ddd|j|_|jjdtdS( NRtQUITt foregroundtredtcommandtsidetfillsMake a New Window(tButtontquitRtpacktLEFTtBOTHRthi_there(R((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt createWidgets.s cCs4tj||tj|d|_|jdS(Ni(tFramet__init__tPacktconfigt windownumR(Rtmaster((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyR9s  N(t__name__t __module__RRRtNoneR(((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyRs  # N(tTkinterRRRttesttmainloop(((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyts 8