ó
‹²,]c           @   st   d  Z  d d l m Z d Z d Z d Z e j j Z e j j	 Z	 e j j
 Z
 e ƒ  Z d „  Z d „  Z d „  Z d	 S(
   s   Windows-specific utilitiesiÿÿÿÿ(   t   windlli   i   i    c         C   s+   i t  t 6t t 6} t t t | |  ƒ ƒ S(   s}   Show/hide system console window attached to current process.
       Return it's previous state.

       Availability: Windows(   t   SW_SHOWt   Truet   SW_HIDEt   Falset   boolt
   ShowWindowt   console_window_handle(   t   statet   flag(    (    s3   lib/python2.7/site-packages/spyder/utils/windows.pyt   set_attached_console_visible   s    c           C   s
   t  t ƒ S(   s1   Return True if attached console window is visible(   t   IsWindowVisibleR   (    (    (    s3   lib/python2.7/site-packages/spyder/utils/windows.pyt   is_attached_console_visible#   s    c           C   s-   y t  j j d ƒ SWn t k
 r( d SXd S(   s3   Make sure correct icon is used on Windows 7 taskbars   spyder.Spyders1   SetCurrentProcessExplicitAppUserModelID not foundN(   R    t   shell32t'   SetCurrentProcessExplicitAppUserModelIDt   AttributeError(    (    (    s3   lib/python2.7/site-packages/spyder/utils/windows.pyt   set_windows_appusermodelid'   s    N(   t   __doc__t   ctypesR    R   t	   SW_SHOWNAR   t   kernel32t   GetConsoleWindowt   user32R   R   R   R
   R   R   (    (    (    s3   lib/python2.7/site-packages/spyder/utils/windows.pyt   <module>   s   			