Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/lib-tk/tkMessageBox.pyo

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�ddlmZdZdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZdefd��YZd+d+d+d+d�Zd+d+d�Zd+d+d�Zd+d+d�Zd+d+d�Zd+d+d�Zd+d+d�Zd+d+d�Zd+d+d�Zedkr�dGedd�GHdGedd �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)/sys/lib/python2.7/lib-tk/tkMessageBox.pyR9scKs�|rd|kr||d<n|r>d|kr>||d<n|rQ||d<n|rd||d<nt|�j�}t|t�r�|r�tStSt|�S(Nticonttypettitletmessage(Rtshowt
isinstancetbooltYEStNOtstr(RRt_icont_typetoptionstres((s)/sys/lib/python2.7/lib-tk/tkMessageBox.pyt_showCs



cKst||tt|�S(sShow an info message(R%tINFOtOK(RRR#((s)/sys/lib/python2.7/lib-tk/tkMessageBox.pytshowinfoQscKst||tt|�S(sShow a warning message(R%tWARNINGR'(RRR#((s)/sys/lib/python2.7/lib-tk/tkMessageBox.pytshowwarningUscKst||tt|�S(sShow an error message(R%tERRORR'(RRR#((s)/sys/lib/python2.7/lib-tk/tkMessageBox.pyt	showerrorYscKst||tt|�S(sAsk a question(R%tQUESTIONtYESNO(RRR#((s)/sys/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)/sys/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)/sys/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)/sys/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)/sys/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)/sys/lib/python2.7/lib-tk/tkMessageBox.pyt<module>sH
		

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].