HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //proc/25635/root/lib64/python3.8/tkinter/__pycache__/messagebox.cpython-38.pyc
U

K��BA��@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�infoZquestionZwarningZabortretryignore�okZokcancelZretrycancelZyesnoZyesnocancel�abortZretry�ignore�cancelZyes�noc@seZdZdZdZdS)�Messagez
A message boxZ
tk_messageBoxN)�__name__�
__module__�__qualname__�__doc__Zcommand�rr�=/tmp/_install_python3/usr/lib/python3.8/tkinter/messagebox.pyr
9sr
NcKsl|rd|kr||d<|r(d|kr(||d<|r4||d<|r@||d<tf|���}t|t�rd|r`tStSt|�S)NZicon�type�title�message)r
Zshow�
isinstance�bool�YES�NO�str)rrZ_iconZ_type�options�resrrr�_showCs
rcKst||ttf|�S)zShow an info message)r�INFO�OK�rrrrrr�showinfoRsrcKst||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|sr1�__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'r/r%r,ZABORTr0ZIGNOREr-rrr
rrr!r#r&r*r+r.r1r�printrrrr�<module>sH