³ò
B3IHc           @   sº   h  d  d <d d <d d <d d <d d	 <d
 d <d d <Z  d e  e  d <d e  d <d e  d <d e  e  d <d e  e  d <e  d e  Z d d k Td „  Z d d d d „ Z d S(   s   www.stani.bet   authors   SM general python libraryt   titles	   13-9-2003t   datesX   %(titleFull)s by %(author)s

%(description)s

%(links)s

%(requirements)s

%(copyright)st   docs   1.0t   versions   2.2t	   pyVersions   2.4.1.2.t	   wxVersions   %(title)s %(version)st	   titleFulls)   Collection of python scripts I often use.t   descriptions^   Homepage : http://www.stani.be
Contact  : http://www.pycs.net/system/mailto.py?usernum=0000167t   linkss%   Developped with Python v%(pyVersion)st   requirementssÊ   Copyright (C)%(author)s (%(date)s)

This library (sm.*) is NOT released under the GPL, but you may use it for free
and adapt it to your own needs, provided you list my name and website in the
copyright.t	   copyrightiÿÿÿÿ(   t   *c           C   s$   d d k  l a d d k l a d S(   s“   Initializes html and css components of the sm library.
    
    >>> import sm
    >>> sm.initHtml()
    >>> print sm.html
    >>> print sm.css
    iÿÿÿÿ(   t   html(   t   cssN(   t   htmlCss.htmlR   t   htmlCss.cssR   (    (    (    s   C:\py\_spe\sm\__init__.pyt   initHtml#   s    
c         C   sY  d d k  } d d k } d } d } d } d } d }	 | i d ƒ }
 | i d	 ƒ d
 } | | i d |	 ƒ 7} | | i d ƒ d
 7} |  o | p d | o | p d B| o | p d B} | | i d | ƒ 7} | | i d ƒ d
 7} | | i d | p d |  p d | p d ƒ 7} | | i d ƒ d
 7} t |
 ƒ GH|
 i | | ƒ } | d j S(   s8   Changes the display resolution and bit depth on Windows.iÿÿÿÿNi   i   i   i   i”   s
   user32.dllt   32BHHt    t   Hi    t   Lt   l9h32BHLt   LLLt   8L(   t   ctypest   structt   WinDLLt   calcsizet   packt   dirt   ChangeDisplaySettingsA(   t   xrest   yrest   BitsPerPixelR   R   t   DM_BITSPERPELt   DM_PELSWIDTHt   DM_PELSHEIGHTt   CDS_FULLSCREENt   SIZEOF_DEVMODEt   user32t   DevModeDatat   dwFieldst   result(    (    s   C:\py\_spe\sm\__init__.pyt   ChangeDisplaySettings2   s&    81N(   t   INFOt   __doc__t   pythonR   t   NoneR,   (    (    (    s   C:\py\_spe\sm\__init__.pys   <module>   s    						


	