Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/lib-tk/
Upload File :
Current File : //usr/lib/python2.7/lib-tk/tkMessageBox.pyc


|_c@sddlmZdZdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZdefdYZd+d+d+d+dZd+d+dZd+d+dZd+d+dZd+d+dZd+d+dZd+d+dZd+d+dZd+d+dZedkrdGeddGHdGedd GHdGedd!GHdGedd"GHd#Gedd$GHd%Gedd&GHd'Gedd(GHd)Gedd*GHnd+S(,i(tDialogterrortinfotquestiontwarningtabortretryignoretoktokcanceltretrycanceltyesnotyesnocanceltaborttretrytignoretcanceltyestnotMessagecBseZdZdZRS(s
A message boxt
tk_messageBox(t__name__t
__module__t__doc__tcommand(((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pyR9scKs|rd|kr||d<n|r>d|kr>||d<n|rQ||d<n|rd||d<nt|j}t|tr|rtStSt|S(Nticonttypettitletmessage(Rtshowt
isinstancetbooltYEStNOtstr(RRt_icont_typetoptionstres((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pyt_showCs



cKst||tt|S(sShow an info message(R%tINFOtOK(RRR#((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pytshowinfoQscKst||tt|S(sShow a warning message(R%tWARNINGR'(RRR#((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pytshowwarningUscKst||tt|S(sShow an error message(R%tERRORR'(RRR#((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pyt	showerrorYscKst||tt|S(sAsk a question(R%tQUESTIONtYESNO(RRR#((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pytaskquestion]scKs"t||tt|}|tkS(s@Ask if operation should proceed; return true if the answer is ok(R%R-tOKCANCELR'(RRR#ts((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pytaskokcancelascKs"t||tt|}|tkS(s0Ask a question; return true if the answer is yes(R%R-R.R(RRR#R1((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pytaskyesnofscKs>t||tt|}t|}|tkr4dS|tkS(sDAsk a question; return true if the answer is yes, None if cancelled.N(R%R-tYESNOCANCELR tCANCELtNoneR(RRR#R1((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pytaskyesnocancelks
cKs"t||tt|}|tkS(sDAsk if operation should be retried; return true if the answer is yes(R%R)tRETRYCANCELtRETRY(RRR#R1((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pytaskretrycanceltst__main__tSpamsEgg InformationsEgg Warnings	Egg Alerts	Question?tproceedsProceed?syes/nosGot it?s
yes/no/cancelsWant it?s	try agains
Try again?N(ttkCommonDialogRR+R&R-R)tABORTRETRYIGNORER'R0R8R.R4tABORTR9tIGNORER5RRRR6R%R(R*R,R/R2R3R7R:R(((s)/usr/lib/python2.7/lib-tk/tkMessageBox.pyt<module>sH