Mini Shell

Direktori : /opt/cppython/lib/python3.8/tkinter/__pycache__/
Upload File :
Current File : //opt/cppython/lib/python3.8/tkinter/__pycache__/messagebox.cpython-38.pyc

U

��eg}�@sHddlmZdZdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZGdd�de�Zd5dd�Zd6dd�Zd7dd�Zd8dd�Zd9dd�Zd:dd �Zd;d!d"�Zd<d#d$�Zd=d%d&�Zed'k�rDeded(d)��eded(d*��eded(d+��eded(d,��ed-ed(d.��ed/ed(d0��ed1ed(d2��ed3ed(d4��dS)>�)�Dialog�error�infoZquestion�warningZabortretryignore�okZokcancelZretrycancelZyesnoZyesnocancel�abortZretry�ignore�cancelZyes�noc@seZdZdZdZdS)�Messagez
A message boxZ
tk_messageBoxN)�__name__�
__module__�__qualname__�__doc__Zcommand�rr�1/opt/cppython/lib/python3.8/tkinter/messagebox.pyr9srNcKsl|rd|kr||d<|r(d|kr(||d<|r4||d<|r@||d<tf|���}t|t�rd|r`tStSt|�S)NZicon�type�title�message)rZshow�
isinstance�bool�YES�NO�str)rrZ_iconZ_type�options�resrrr�_showCs
rcKst||ttf|�S)zShow an info message)r�INFO�OK�rrrrrr�showinfoRsr cKst||ttf|�S)zShow a warning message)r�WARNINGrrrrr�showwarningWsr"cKst||ttf|�S)zShow an error message)r�ERRORrrrrr�	showerror\sr$cKst||ttf|�S)zAsk a question)r�QUESTION�YESNOrrrr�askquestionasr'cKst||ttf|�}|tkS)z@Ask if operation should proceed; return true if the answer is ok)rr%�OKCANCELr�rrr�srrr�askokcancelfsr+cKst||ttf|�}|tkS)z0Ask a question; return true if the answer is yes)rr%r&rr)rrr�askyesnolsr,cKs.t||ttf|�}t|�}|tkr&dS|tkS)zDAsk a question; return true if the answer is yes, None if cancelled.N)rr%�YESNOCANCELr�CANCELrr)rrr�askyesnocancelrs
r/cKst||ttf|�}|tkS)zDAsk if operation should be retried; return true if the answer is yes)rr!�RETRYCANCEL�RETRYr)rrr�askretrycancel|sr2�__main__ZSpamzEgg InformationzEgg Warningz	Egg Alertz	Question?ZproceedzProceed?zyes/nozGot it?z
yes/no/cancelzWant it?z	try againz
Try again?)NNNN)NN)NN)NN)NN)NN)NN)NN)NN)Ztkinter.commondialogrr#rr%r!ZABORTRETRYIGNORErr(r0r&r-ZABORTr1ZIGNOREr.rrrrr r"r$r'r+r,r/r2r�printrrrr�<module>sH










	


Zerion Mini Shell 1.0