o
   $                   @   sR  d dl mZ g dZdZdZdZdZdZdZd	Z	d
Z
dZdZdZdZdZdZdZdZdZG dd deZd6ddZd7ddZd7ddZd7ddZd7ddZd7d d!Zd7d"d#Zd7d$d%Zd7d&d'Zed(kreded)d* eded)d+ eded)d, eded)d- ed.ed)d/ ed0ed)d1 ed2ed)d3 ed4ed)d5 dS dS )8    )Dialog)showinfoshowwarning	showerroraskquestionaskokcancelaskyesnoaskyesnocancelaskretrycancelerrorinfoZquestionwarningZabortretryignoreokZokcancelZretrycancelZyesnoZyesnocancelabortZretryignorecancelZyesnoc                   @   s   e Zd ZdZdZdS )MessagezA message boxZtk_messageBoxN)__name__
__module____qualname____doc__Zcommand r   r   8/app/.heroku/python/lib/python3.10/tkinter/messagebox.pyr   =   s    r   Nc                 K   sp   |r
d|vr
||d< |rd|vr||d< | r| |d< |r ||d< t di | }t|tr4|r2tS tS t|S )NZicontypetitlemessager   )r   Zshow
isinstanceboolYESNOstr)r   r   Z_iconZ_typeoptionsresr   r   r   _showG   s   
r$   c                 K      t | |ttfi |S )zShow an info message)r$   INFOOKr   r   r"   r   r   r   r   V      r   c                 K   r%   )zShow a warning message)r$   WARNINGr'   r(   r   r   r   r   [   r)   r   c                 K   r%   )zShow an error message)r$   ERRORr'   r(   r   r   r   r   `   r)   r   c                 K   r%   )zAsk a question)r$   QUESTIONYESNOr(   r   r   r   r   e   r)   r   c                 K      t | |ttfi |}|tkS )z@Ask if operation should proceed; return true if the answer is ok)r$   r,   OKCANCELr'   r   r   r"   sr   r   r   r   j      r   c                 K   r.   )z0Ask a question; return true if the answer is yes)r$   r,   r-   r   r0   r   r   r   r   p   r2   r   c                 K   s2   t | |ttfi |}t|}|tkrdS |tkS )zDAsk a question; return true if the answer is yes, None if cancelled.N)r$   r,   YESNOCANCELr!   CANCELr   r0   r   r   r   r	   v   s
   r	   c                 K   r.   )zDAsk if operation should be retried; return true if the answer is yes)r$   r*   RETRYCANCELRETRYr0   r   r   r   r
      r2   r
   __main__ZSpamzEgg InformationzEgg Warningz	Egg Alertz	Question?ZproceedzProceed?zyes/nozGot it?zyes/no/cancelzWant it?z	try againz
Try again?)NNNN)NN)Ztkinter.commondialogr   __all__r+   r&   r,   r*   ZABORTRETRYIGNOREr'   r/   r5   r-   r3   ZABORTr6   ZIGNOREr4   r   r    r   r$   r   r   r   r   r   r   r	   r
   r   printr   r   r   r   <module>   sN   










	