ó
 m[c           @` są   d  Z  d d l m Z m Z m Z m Z d d l Z d d l m Z y- e d sZ e	  n  d d l
 m Z m Z Wn# e	 k
 r d   Z d   Z n Xd	 e f d
     YZ d S(   uÄ   
MS Windows-specific helper for the TkAgg backend.

With rcParams['tk.window_focus'] default of False, it is
effectively disabled.

It uses a tiny C++ extension module to access MS Win functions.
i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsN(   t   rcParamsu   tk.window_focus(   t   GetForegroundWindowt   SetForegroundWindowc           C` s   d S(   Ni    (    (    (    (    s<   lib/python2.7/site-packages/matplotlib/backends/windowing.pyR      s    c         C` s   d  S(   N(    (   t   hwnd(    (    s<   lib/python2.7/site-packages/matplotlib/backends/windowing.pyR      s    t   FocusManagerc           B` s   e  Z d    Z d   Z RS(   c         C` s   t    |  _ d  S(   N(   R   t   _shellWindow(   t   self(    (    s<   lib/python2.7/site-packages/matplotlib/backends/windowing.pyt   __init__   s    c         C` s   t  |  j  d  S(   N(   R   R	   (   R
   (    (    s<   lib/python2.7/site-packages/matplotlib/backends/windowing.pyt   __del__   s    (   t   __name__t
   __module__R   R   (    (    (    s<   lib/python2.7/site-packages/matplotlib/backends/windowing.pyR      s   	(   t   __doc__t
   __future__R    R   R   R   t   sixt
   matplotlibR   t   ImportErrort   matplotlib._windowingR   R   t   objectR   (    (    (    s<   lib/python2.7/site-packages/matplotlib/backends/windowing.pyt   <module>   s   "
		