ó
ąéRc           @  s   d  Z  d d l m Z d d l m Z y- e d s< e  n  d d l m Z m Z Wn# e k
 rx d   Z d   Z n Xd d d	     YZ	 d
 S(   sÄ   
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   print_function(   t   rcParamss   tk.window_focus(   t   GetForegroundWindowt   SetForegroundWindowc           C  s   d S(   Ni    (    (    (    (    sW   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/windowing.pyR      s    c         C  s   d  S(   N(    (   t   hwnd(    (    sW   /opt/xtal/ccp4-6.5-linux32/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(    (    sW   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/windowing.pyt   __init__   s    c         C  s   t  |  j  d  S(   N(   R   R   (   R   (    (    sW   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/windowing.pyt   __del__   s    (   t   __name__t
   __module__R   R	   (    (    (    sW   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/windowing.pyR      s   	N(    (
   t   __doc__t
   __future__R    t
   matplotlibR   t   ImportErrort   matplotlib._windowingR   R   R   (    (    (    sW   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/matplotlib/backends/windowing.pyt   <module>   s   
		