Your IP : 216.73.216.213


Current Path : /opt/alt/python34/lib64/python3.4/tkinter/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/tkinter/__pycache__/messagebox.cpython-34.pyc

�
h fu�@s�ddlmZdZdZdZdZdZdZdZd	Z	d
Z
dZdZd
Z
dZdZdZdZdZGdd�de�Zdddddd�Zdddd�Zdddd�Zdddd�Zdddd�Zdddd �Zddd!d"�Zddd#d$�Zddd%d&�Zed'kr�eded(d)��eded(d*��eded(d+��eded(d,��ed-ed(d.��ed/ed(d0��ed1ed(d2��ed3ed(d4��ndS)5�)�Dialog�error�infoZquestionZwarningZabortretryignore�okZokcancelZretrycancelZyesnoZyesnocancel�abortZretry�ignoreZcancel�yes�noc@seZdZdZdZdS)�Messagez
A message boxZ
tk_messageBoxN)�__name__�
__module__�__qualname__�__doc__Zcommand�rr�7/opt/alt/python34/lib64/python3.4/tkinter/messagebox.pyr
9sr
NcKs�|rd|kr||d<n|r>d|kr>||d<n|rQ||d<n|rd||d<nt|�j�}t|t�r�|r�tStSt|�S)NZicon�type�title�message)r
Zshow�
isinstance�bool�YES�NO�str)rrZ_iconZ_type�options�resrrr�_showCs



rcKst||tt|�S)zShow an info message)r�INFO�OK)rrrrrr�showinfoQsrcKst||tt|�S)zShow a warning message)r�WARNINGr)rrrrrr�showwarningUsr cKst||tt|�S)zShow an error message)r�ERRORr)rrrrrr�	showerrorYsr"cKst||tt|�S)zAsk a question)r�QUESTION�YESNO)rrrrrr�askquestion]sr%cKs"t||tt|�}|tkS)z@Ask if operation should proceed; return true if the answer is ok)rr#�OKCANCELr)rrr�srrr�askokcancelasr(cKs"t||tt|�}|tkS)z0Ask a question; return true if the answer is yes)rr#r$r)rrrr'rrr�askyesnofsr)cKs>t||tt|�}t|�}|tkr4dS|tkS)zDAsk a question; return true if the answer is yes, None if cancelled.N)rr#�YESNOCANCELr�CANCELr)rrrr'rrr�askyesnocancelks
r,cKs"t||tt|�}|tkS)zDAsk if operation should be retried; return true if the answer is yes)rr�RETRYCANCEL�RETRY)rrrr'rrr�askretrycanceltsr/�__main__ZSpamzEgg InformationzEgg Warningz	Egg Alertz	Question?ZproceedzProceed?zyes/nozGot it?z
yes/no/cancelzWant it?z	try againz
Try again?)Ztkinter.commondialogrr!rr#rZABORTRETRYIGNORErr&r-r$r*ZABORTr.ZIGNOREr+rrr
rrr r"r%r(r)r,r/r�printrrrr�<module>sH