ó
ñsºec           @   s¼  d  d l  m 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 d+ d+ d „ Z e d k r¸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( ƒ 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.7/lib-tk/tkMessageBox.pyR   9   s   c         K   s   | r d | k r | | d <n  | r> d | k r> | | d <n  |  rQ |  | d <n  | rd | | d <n  t  |   j ƒ  } t | t ƒ r“ | r t St St | ƒ S(   Nt   icont   typet   titlet   message(   R   t   showt
   isinstancet   boolt   YESt   NOt   str(   R   R   t   _icont   _typet   optionst   res(    (    s)   /usr/lib/python2.7/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.7/lib-tk/tkMessageBox.pyt   showinfoQ   s    c         K   s   t  |  | t t |  S(   s   Show a warning message(   R%   t   WARNINGR'   (   R   R   R#   (    (    s)   /usr/lib/python2.7/lib-tk/tkMessageBox.pyt   showwarningU   s    c         K   s   t  |  | t t |  S(   s   Show an error message(   R%   t   ERRORR'   (   R   R   R#   (    (    s)   /usr/lib/python2.7/lib-tk/tkMessageBox.pyt	   showerrorY   s    c         K   s   t  |  | t t |  S(   s   Ask a question(   R%   t   QUESTIONt   YESNO(   R   R   R#   (    (    s)   /usr/lib/python2.7/lib-tk/tkMessageBox.pyt   askquestion]   s    c         K   s"   t  |  | t t |  } | t k 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.7/lib-tk/tkMessageBox.pyt   askokcancela   s    c         K   s"   t  |  | t t |  } | t k S(   s0   Ask a question; return true if the answer is yes(   R%   R-   R.   R   (   R   R   R#   R1   (    (    s)   /usr/lib/python2.7/lib-tk/tkMessageBox.pyt   askyesnof   s    c         K   s>   t  |  | t t |  } t | ƒ } | t k r4 d S| t k S(   sD   Ask a question; return true if the answer is yes, None if cancelled.N(   R%   R-   t   YESNOCANCELR    t   CANCELt   NoneR   (   R   R   R#   R1   (    (    s)   /usr/lib/python2.7/lib-tk/tkMessageBox.pyt   askyesnocancelk   s
    c         K   s"   t  |  | t t |  } | t k S(   sD   Ask if operation should be retried; return true if the answer is yes(   R%   R)   t   RETRYCANCELt   RETRY(   R   R   R#   R1   (    (    s)   /usr/lib/python2.7/lib-tk/tkMessageBox.pyt   askretrycancelt   s    t   __main__t   Spams   Egg Informations   Egg Warnings	   Egg Alerts	   Question?t   proceeds   Proceed?s   yes/nos   Got it?s   yes/no/cancels   Want it?s	   try agains
   Try again?N(   t   tkCommonDialogR    R+   R&   R-   R)   t   ABORTRETRYIGNORER'   R0   R8   R.   R4   t   ABORTR9   t   IGNORER5   R   R   R   R6   R%   R(   R*   R,   R/   R2   R3   R7   R:   R   (    (    (    s)   /usr/lib/python2.7/lib-tk/tkMessageBox.pyt   <module>   sH   
		