%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core/17212/usr/lib/python3.5/tkinter/__pycache__/
Upload File :
Create Path :
Current File : //snap/core/17212/usr/lib/python3.5/tkinter/__pycache__/messagebox.cpython-35.pyc



|�gu�@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��dS)5�)�Dialog�error�infoZquestionZwarningZabortretryignore�okZokcancelZretrycancelZyesnoZyesnocancel�abortZretry�ignoreZcancelZyesZnoc@seZdZdZdZdS)�Messagez
A message boxZ
tk_messageBoxN)�__name__�
__module__�__qualname__�__doc__Zcommand�r
r
�(/usr/lib/python3.5/tkinter/messagebox.pyr9srNcKs�|rd|kr||d<|r8d|kr8||d<|rH||d<|rX||d<t|�j�}t|t�r�|r�tStSt|�S)NZicon�type�title�message)rZshow�
isinstance�bool�YES�NO�str)rrZ_iconZ_type�optionsZresr
r
r�_showCs



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

Zerion Mini Shell 1.0