łň
\Kc           @   s  d  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()   i˙˙˙˙(   t   Dialogt   errort   infot   questiont   warningt   abortretryignoret   okt   okcancelt   retrycancelt   yesnot   yesnocancelt   abortt   retryt   ignoret   cancelt   yest   not   Messagec           B   s   e  Z d  Z d Z RS(   s   A message boxt   tk_messageBox(   t   __name__t
   __module__t   __doc__t   command(    (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyR   9   s   c         K   sŤ   | o d | j o | | d <n | o d | j 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   showt
   isinstancet   boolt   YESt   NO(   R   R   t   _icont   _typet   optionst   res(    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt   _showC   s         c         K   s   t  |  | t t |  S(   s   Show an info message(   R$   t   INFOt   OK(   R   R   R"   (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt   showinfoO   s    c         K   s   t  |  | t t |  S(   s   Show a warning message(   R$   t   WARNINGR&   (   R   R   R"   (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt   showwarningS   s    c         K   s   t  |  | t t |  S(   s   Show an error message(   R$   t   ERRORR&   (   R   R   R"   (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt	   showerrorW   s    c         K   s   t  |  | t t |  S(   s   Ask a question(   R$   t   QUESTIONt   YESNO(   R   R   R"   (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt   askquestion[   s    c         K   s"   t  |  | t t |  } | t j S(   s@   Ask if operation should proceed; return true if the answer is ok(   R$   R,   t   OKCANCELR&   (   R   R   R"   t   s(    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt   askokcancel_   s    c         K   s"   t  |  | t t |  } | t j S(   s0   Ask a question; return true if the answer is yes(   R$   R,   R-   R   (   R   R   R"   R0   (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt   askyesnod   s    c         K   s"   t  |  | t t |  } | t j S(   sD   Ask if operation should be retried; return true if the answer is yes(   R$   R(   t   RETRYCANCELt   RETRY(   R   R   R"   R0   (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pyt   askretrycanceli   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   tkCommonDialogR    R*   R%   R,   R(   t   ABORTRETRYIGNORER&   R/   R3   R-   t   YESNOCANCELt   ABORTR4   t   IGNOREt   CANCELR   R   R   t   NoneR$   R'   R)   R+   R.   R1   R2   R5   R   (    (    (    s)   /usr/lib/python2.5/lib-tk/tkMessageBox.pys   <module>   sD   
	