ó ¿œ^c@sGddlTddlmZdefd„ƒYZeƒZejƒdS(iÿÿÿÿ(t*(tDialogtTestcBs/eZd„Zd„Zd„Zdd„ZRS(cCs dGHdS(Nthi((tself((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pytprintitsc Cs1t|ddddddddd d ƒ}|jS( sðCreate 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(R R (Rtnum(Rtd((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt makeWindow s cCsrt|ddddd|jƒ|_|jjdtdtƒt|ddd|jƒ|_|jjdtƒdS( NRtQUITt foregroundtredtcommandtsidetfillsMake a New Window(tButtontquitRtpacktLEFTtBOTHRthi_there(R((s4/usr/lib64/python2.7/Demo/tkinter/matt/dialog-box.pyt createWidgets.s cCs4tj||ƒtj|ƒd|_|jƒdS(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