mς
­fIc           @   s  d  k  l 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 d e f d     YZ d' d' d' d' d  Z d' d' d  Z d' d' d  Z d' d' d  Z d' d' d  Z d' d' d  Z d' d' d  Z d' d' d  Z e d j o d Ge d d  GHd Ge d d  GHd Ge d d  GHd Ge d d   GHd! Ge d d"  GHd# Ge d d$  GHd% Ge d d&  GHn d' S((   (   s   Dialogt   errort   infot   questiont   warningt   abortretryignoret   okt   okcancelt   retrycancelt   yesnot   yesnocancelt   abortt   retryt   ignoret   cancelt   yest   not   Messagec           B   s   t  Z d  Z d Z RS(   s   A message boxt   tk_messageBox(   t   __name__t
   __module__t   __doc__t   command(    (    (    t0   /mit/python/lib/python2.4/lib-tk/tkMessageBox.pyR   =   s    c         K   s   | o | | d <n | o | | d <n |  o |  | d <n | o | | d <n t |   i   } t | t	  o | o t
 Sn t Sn | S(   Nt   icont   typet   titlet   message(   R   t   optionsR   R   R   R   t   showt   rest
   isinstancet   boolt   YESt   NO(   R   R   R   R   R   R   (    (    R   t   _showF   s         c         K   s   t  |  | t t |  S(   s   Show an info messageN(   R"   R   R   t   INFOt   OKR   (   R   R   R   (    (    R   t   showinfoR   s     c         K   s   t  |  | t t |  S(   s   Show a warning messageN(   R"   R   R   t   WARNINGR$   R   (   R   R   R   (    (    R   t   showwarningV   s     c         K   s   t  |  | t t |  S(   s   Show an error messageN(   R"   R   R   t   ERRORR$   R   (   R   R   R   (    (    R   t	   showerrorZ   s     c         K   s   t  |  | t t |  S(   s   Ask a questionN(   R"   R   R   t   QUESTIONt   YESNOR   (   R   R   R   (    (    R   t   askquestion^   s     c         K   s"   t  |  | t t |  } | t j S(   s@   Ask if operation should proceed; return true if the answer is okN(   R"   R   R   R*   t   OKCANCELR   t   sR$   (   R   R   R   R.   (    (    R   t   askokcancelb   s     c         K   s"   t  |  | t t |  } | t j S(   s0   Ask a question; return true if the answer is yesN(   R"   R   R   R*   R+   R   R.   R    (   R   R   R   R.   (    (    R   t   askyesnog   s     c         K   s"   t  |  | t t |  } | t j S(   sD   Ask if operation should be retried; return true if the answer is yesN(   R"   R   R   R&   t   RETRYCANCELR   R.   t   RETRY(   R   R   R   R.   (    (    R   t   askretrycancell   s     t   __main__t   Spams   Egg Informations   Egg Warnings	   Egg Alerts	   Question?t   proceeds   Proceed?s   yes/nos   Got it?s	   try agains
   Try again?N(   t   tkCommonDialogt   DialogR(   R#   R*   R&   t   ABORTRETRYIGNORER$   R-   R1   R+   t   YESNOCANCELt   ABORTR2   t   IGNOREt   CANCELR    R!   R   t   NoneR"   R%   R'   R)   R,   R/   R0   R3   R   (   R2   R-   R/   R%   R0   R'   R+   R)   R!   R1   R*   R,   R&   R9   R8   R(   R=   R   R#   R$   R"   R<   R;   R:   R    R3   (    (    R   t   ?   sD   		