mς
­fIc           @   sa   d  Z  d Z d k Td k l Z d   Z d   Z y e Wn  e j
 o d k l Z n Xd S(   sΨ   curses

The main package for curses support for Python.  Normally used by importing
the package, and perhaps a particular module inside it.

   import curses
   from curses import textpad
   curses.initwin()
   ...

s5   $Id: __init__.py 36560 2004-07-18 06:16:08Z tim_one $(   t   *(   s   wrapperc          C   sw   d  k  } d  k }  | i   } xR | i i   D]A \ } } | d d !d j p | d j o t |  | |  q. q. W| S(   Ni    i   t   ACS_t   LINESt   COLS(   R   R   (	   t   _cursest   cursest   initscrt   stdscrt   __dict__t   itemst   keyt   valuet   setattr(   R   R   R   R
   R   (    (    t,   /mit/python/lib/python2.4/curses/__init__.pyR      s     !c          C   sb   d  k  }  d  k } |  i   } t |  d  o |  i | _ n t |  d  o |  i | _ n | S(   Nt   COLORSt   COLOR_PAIRS(   R   R   t   start_colort   retvalt   hasattrR   R   (   R   R   R   (    (    R   R   '   s    (   s   has_keyN(	   t   __doc__t   __revision__R   t   curses.wrappert   wrapperR   R   t   has_keyt	   NameError(   R   R   R   R   R   (    (    R   t   ?   s   
		