
    d                     2   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e          Zd-dZd.dZd.dZd.dZd.dZd.dZd.dZd.dZd.dZedk    r e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d' ed d(                      ed) ed d*                      ed+ ed d,                     dS dS )/    )Dialog)showinfoshowwarning	showerroraskquestionaskokcancelaskyesnoaskyesnocancelaskretrycancelerrorinfoquestionwarningabortretryignoreokokcancelretrycancelyesnoyesnocancelabortretryignorecancelyesnoc                       e Zd ZdZdZdS )MessagezA message boxtk_messageBoxN)__name__
__module____qualname____doc__command     $  /croot/python-split_1694437901252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/tkinter/messagebox.pyr   r   =   s        OGGGr%   r   Nc                     |r	d|vr||d<   |r	d|vr||d<   | r| |d<   |r||d<   t          di |                                }t          |t                    r|rt          S t
          S t          |          S )Nicontypetitlemessager$   )r   show
isinstanceboolYESNOstr)r*   r+   _icon_typeoptionsress         r&   _showr6   G   s    Bw&&U76?Bw&&U76?(5 ,W	"


G


!
!
#
#C#t  	J	s88Or%   c                 6    t          | |t          t          fi |S )zShow an info message)r6   INFOOKr*   r+   r4   s      r&   r   r   V   s    r55W555r%   c                 6    t          | |t          t          fi |S )zShow a warning message)r6   WARNINGr9   r:   s      r&   r   r   [   s    "88888r%   c                 6    t          | |t          t          fi |S )zShow an error message)r6   ERRORr9   r:   s      r&   r   r   `   s    66g666r%   c                 6    t          | |t          t          fi |S )zAsk a question)r6   QUESTIONYESNOr:   s      r&   r   r   e   s    5<<G<<<r%   c                 L    t          | |t          t          fi |}|t          k    S )z@Ask if operation should proceed; return true if the answer is ok)r6   r@   OKCANCELr9   r*   r+   r4   ss       r&   r   r   j   s&    eWh<<G<<A7Nr%   c                 L    t          | |t          t          fi |}|t          k    S )z0Ask a question; return true if the answer is yes)r6   r@   rA   r/   rD   s       r&   r	   r	   p   s&    eWh9999A8Or%   c                     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)r6   r@   YESNOCANCELr1   CANCELr/   rD   s       r&   r
   r
   v   s?    eWh??w??AAAF{{t8Or%   c                 L    t          | |t          t          fi |}|t          k    S )zDAsk if operation should be retried; return true if the answer is yes)r6   r<   RETRYCANCELRETRYrD   s       r&   r   r      s'    eWg{>>g>>A:r%   __main__SpamzEgg InformationzEgg Warningz	Egg Alertz	Question?proceedzProceed?zyes/nozGot it?zyes/no/cancelzWant it?z	try againz
Try again?)NNNN)NN)tkinter.commondialogr   __all__r>   r8   r@   r<   ABORTRETRYIGNOREr9   rC   rK   rA   rH   ABORTrL   IGNORErI   r/   r0   r   r6   r   r   r   r   r   r	   r
   r   r   printr$   r%   r&   <module>rV      sp  2 ( ' ' ' ' '/ / / 	
 & 	 					    f      6 6 6 6
9 9 9 9
7 7 7 7
= = = =
             z	E&((6#455666	E)[[77888	E'99V[11222	E*kk&+66777	E)[[44555	E(HHVY//000	E/>>&*==>>>	E+~~fl;;<<<<< r%   