Your IP : 216.73.216.85


Current Path : /opt/alt/python39/lib64/python3.9/tkinter/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/tkinter/__pycache__/messagebox.cpython-39.opt-1.pyc

a

XC?h�@sPddlmZgd�ZdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZdZGdd�de�Zd6dd�Zd7dd�Zd8dd�Zd9dd�Zd:dd�Zd;d d!�Zd<d"d#�Zd=d$d%�Zd>d&d'�Zed(k�rLeded)d*��eded)d+��eded)d,��eded)d-��ed.ed)d/��ed0ed)d1��ed2ed)d3��ed4ed)d5��dS)?�)�Dialog)�showinfo�showwarning�	showerror�askquestion�askokcancel�askyesno�askyesnocancel�askretrycancel�error�infoZquestionZwarningZabortretryignore�okZokcancelZretrycancelZyesnoZyesnocancel�abortZretry�ignoreZcancelZyesZnoc@seZdZdZdZdS)�Messagez
A message boxZ
tk_messageBoxN)�__name__�
__module__�__qualname__�__doc__Zcommand�rr�7/opt/alt/python39/lib64/python3.9/tkinter/messagebox.pyr=srNcKsp|rd|vr||d<|r(d|vr(||d<|r4||d<|r@||d<tfi|����}t|t�rh|rdtStSt|�S)NZicon�type�title�message)rZshow�
isinstance�bool�YES�NO�str)rrZ_iconZ_type�options�resrrr�_showGs
r!cKst||ttfi|��S)zShow an info message)r!�INFO�OK�rrrrrrrVsrcKst||ttfi|��S)zShow a warning message)r!�WARNINGr#r$rrrr[srcKst||ttfi|��S)zShow an error message)r!�ERRORr#r$rrrr`srcKst||ttfi|��S)zAsk a question)r!�QUESTION�YESNOr$rrrresrcKst||ttfi|��}|tkS)z@Ask if operation should proceed; return true if the answer is ok)r!r'�OKCANCELr#�rrr�srrrrjsrcKst||ttfi|��}|tkS)z0Ask a question; return true if the answer is yes)r!r'r(rr*rrrrpsrcKs2t||ttfi|��}t|�}|tkr*dS|tkS)zDAsk a question; return true if the answer is yes, None if cancelled.N)r!r'�YESNOCANCELr�CANCELrr*rrrr	vs
r	cKst||ttfi|��}|tkS)zDAsk if operation should be retried; return true if the answer is yes)r!r%�RETRYCANCEL�RETRYr*rrrr
�sr
�__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.commondialogr�__all__r&r"r'r%ZABORTRETRYIGNOREr#r)r.r(r,ZABORTr/ZIGNOREr-rrrr!rrrrrrr	r
r�printrrrr�<module>sJ