ó
 .CJc           @   s"  d  Z  d d l Z d d l Z d d l Z d e j k r˜ e e d ƒ r˜ y@ e j ƒ  d d0 k r‡ e j ƒ  d d1 k r‡ d e j d <n  Wq• q• Xq˜ n  d d2 d „  ƒ  YZ d d l Td d l	 Td d l
 Td d l m Z d d l m Z d d l Z d d l Z d d l Z e j Z e Z y d d l Z Wn, e e f k
 rZe d e ƒ  d ƒ Z n Xy d d l Z Wn, e e f k
 r™e d e ƒ  d ƒ Z n Xy d d l Z Wn, e e f k
 rØe d e ƒ  d ƒ Z n Xy d d l Z Wn, e e f k
 re d e ƒ  d ƒ Z  n Xy d d l! Z Wn, e e f k
 rVe d e ƒ  d ƒ Z" n Xy d d l# Z Wn, e e f k
 r•e d e ƒ  d ƒ Z$ n Xy d d l% Z Wn, e e f k
 rÔe d e ƒ  d ƒ Z& n Xy d d l' Z Wn, e e f k
 re d e ƒ  d ƒ Z( n Xy d d l) Z Wn, e e f k
 rRe d e ƒ  d ƒ Z* n Xy d d l+ Z Wn, e e f k
 r‘e d e ƒ  d ƒ Z, n Xy d d l- Z Wn, e e f k
 rÐe d e ƒ  d ƒ Z. n Xd „  Z/ y d d l0 TWn  e e f k
 r
d „  Z1 n Xy  d d l2 Z d d l2 m3 Z3 Wn  e e f k
 rMd „  Z3 n Xy d d l4 TWn  e e f k
 r~d  „  Z5 n Xy d d l6 TWn  e e f k
 r¯d! „  Z7 n Xy d d l8 Z Wn, e e f k
 rîe d" e ƒ  d ƒ Z9 n Xy d d l: Z Wn, e e f k
 r-e d# e ƒ  d ƒ Z; n XyR d d l< Z d d l= Z e j> j? e j@ _? e j> jA e j@ _A e j> jB e j@ _B Wn, e e f k
 r®e d$ e ƒ  d ƒ Z@ n Xy d d lC Z Wn e e f k
 rØn Xy d d lD Z Wn, e e f k
 re d% e ƒ  d ƒ ZE n Xy d d lF Z Wn, e e f k
 rVe d& e ƒ  d ƒ ZG n Xy d d lH Z Wn, e e f k
 r•e d' e ƒ  d ƒ ZI n Xy d d lJ Z Wn, e e f k
 rÔe d( e ƒ  d ƒ ZK n Xy d d lL Z Wn, e e f k
 re d) e ƒ  d ƒ ZM n Xy d d lN Z Wn, e e f k
 rRe d* e ƒ  d ƒ ZO n Xy d d lP Z e `Q Wn e e f k
 r‚n Xd+ „  ZR y d d lS ZS Wn e k
 r»d d lT ZS n Xd, „  ZU d- „  ZV eS jW e eV eU ƒ d. „  ZX d/ „  ZY eS jW e eY eX ƒ [ [ [ [Z [[ [ [S [ d S(3   s<  Pygame is a set of Python modules designed for writing games.
It is written on top of the excellent SDL library. This allows you
to create fully featured games and multimedia programs in the python
language. The package is highly portable, with games running on
Windows, MacOS, OS X, BeOS, FreeBSD, IRIX, and Linux.
iÿÿÿÿNt   SDL_VIDEODRIVERt   getwindowsversioni   i   i   i    i   i   t   directxt   MissingModulec           B   s8   e  Z e Z d  d d „ Z d „  Z d „  Z d „  Z RS(   t    i    c         C   s   | |  _  t | ƒ |  _ zP t j ƒ  } | d d  k r^ d | d j t | d ƒ f |  _ n	 d |  _ Wd  ~ X| |  _ | r‹ |  j	 ƒ  n  d  S(   Ni    s   %s: %si   R   (
   t   namet   strt   infot   syst   exc_infot   Nonet   __name__t   reasont   urgentt   warn(   t   selfR   R   R   t   exc(    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   __init__0   s    	'	c         C   sY   |  j  s |  j ƒ  d |  _  n  d |  j } |  j rI | d |  j 7} n  t | ƒ ‚ d  S(   Ni   s   %s module not availables   
(%s)(   R   R   R   R   t   NotImplementedError(   R   t   vart   MissingPygameModule(    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   __getattr__?   s    	
	c         C   s   d S(   Ni    (    (   R   (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   __nonzero__H   s    c         C   s¦   |  j  r d } n d } d | |  j |  j f } |  j rN | d |  j 7} n  y; d d  l } |  j  ro d } n d } | j | t | ƒ Wn t k
 r¡ | GHn Xd  S(   Nt   importt   uses	   %s %s: %ss   
(%s)iÿÿÿÿi   i   (   R   R   R   R   t   warningsR   t   RuntimeWarningt   ImportError(   R   t   typet   messageR   t   level(    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyR   K   s    	 			 	(   R   t
   __module__t   Truet   _NOT_IMPLEMENTED_R   R   R   R   (    (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyR   .   s
   			(   t   *(   t   Rect(   t   geterrort   cdromt   cursorst   displayt   drawt   eventt   imaget   joystickt   keyt   mouset   spritet   threadsc          C   s²  t  j j t j j ƒ d }  t  j j t j j ƒ d } d g } d g } t  j d k rb g  } n  g  | D] } d | | f ^ qi } g  d d d	 g D]# } | D] } d | | f ^ qŸ q• } | | } g  }	 x* | D]" }
 |	 j t  j j	 |  |
 ƒ ƒ qÕ Wg  } x0 |	 D]( }
 t  j j
 |
 ƒ r| j |
 ƒ qqW| r®d
 } x | D] }
 | d |
 7} qGW| d 7} y) d d l } d } | j | t | ƒ Wq®t k
 rª| GHq®Xn  d S(   s,    Used to warn about unneeded old files.
    i    i   t   camerat   colort   e32s   %s%ss   .pys   .pycs   .pyos4   Detected old file(s).  Please remove the old files:
s   %s s2   
Leaving them there might break pygame.  Cheers!

iÿÿÿÿNi   (   t   ost   patht   splitt   pygamet   baset   __file__t   splitextR   t   appendt   joint   existsR   R   R   R   (   t   install_patht   extension_extt   ext_to_removet   py_to_removet   xt   extension_filest   py_extt   py_filest   filest   unwanted_filest   ft
   ask_removeR   R   R   (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   warn_unwanted_files   s:    			##
 
c           C   s   t  S(   N(   t   Missing_Function(    (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   <lambda>Ê   s    (   t   Maskc           C   s   t  S(   N(   RJ   (    (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyRK   Ð   s    c           C   s   t  S(   N(   RJ   (    (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyRK   Ó   s    c           C   s   t  S(   N(   RJ   (    (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyRK   Ö   s    t   timet	   transformt   fontt   mixert   moviet   scrapt	   surfarrayt   sndarrayt	   fasteventc          C   sd   d d l  }  d d l } d d l } d d l } d d l } d d l } d d l } d d l } d S(   sD   
    Some additional things that py2app/py2exe will want to see
    iÿÿÿÿN(   t   atexitt   Numerict   numpyt	   OpenGL.GLt   pygame.macosxt   pygame.mac_scrapt   pygame.bufferproxyt   pygame.colordict(   RV   RW   RX   t   OpenGLR6   (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   packager_imports
  s    c         C   s   t  |  | | | ƒ S(   N(   R#   (   RA   t   yt   wt   h(    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   __rect_constructor  s    c         C   s"   t  |  j |  j |  j |  j f f S(   N(   Rc   RA   R`   Ra   Rb   (   t   r(    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   __rect_reduce  s    c         C   s   t  |  | | | ƒ S(   N(   t   Color(   Rd   t   gt   bt   a(    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   __color_constructor%  s    c         C   s"   t  |  j |  j |  j |  j f f S(   N(   Rj   Rd   Rg   Rh   Ri   (   t   c(    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   __color_reduce'  s    (   i   i   (   i    i   i   i   i   i   (    (\   t   __doc__R   R3   t   stringt   environt   hasattrR   R   t   pygame.baset   pygame.constantst   pygame.versiont   pygame.rectR#   t   pygame.compatR$   t   pygame.rwobjectR6   t   pygame.surflockt   pygame.colorR1   Rf   t   vert   __version__t   pygame.cdromR   t   IOErrorR%   t   pygame.cursorsR&   t   pygame.displayR'   t   pygame.drawR(   t   pygame.eventR)   t   pygame.imageR*   t   pygame.joystickR+   t
   pygame.keyR,   t   pygame.mouseR-   t   pygame.spriteR.   t   pygame.threadsR/   RI   t   pygame.surfacet   Surfacet   pygame.maskRL   t   pygame.pixelarrayt
   PixelArrayt   pygame.overlayt   Overlayt   pygame.timeRM   t   pygame.transformRN   t   pygame.fontt   pygame.sysfontt   sysfontt   SysFontRO   t	   get_fontst
   match_fontt   pygame.mixer_musict   pygame.mixerRP   t   pygame.movieRQ   t   pygame.scrapRR   t   pygame.surfarrayRS   t   pygame.sndarrayRT   t   pygame.fasteventRU   t   pygame.imageextt   imageextR_   t   copy_regt   copyregRc   Re   t   pickleRj   Rl   t   rwobjectt   surflock(    (    (    s<   c:\mingw\msys\1.0\newbuild\install\python\pygame\__init__.pyt   <module>   s  $
1


	                      	:                          
 					