Skip to content

Commit

Permalink
windowing: add module docstring, fix import
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=8419
  • Loading branch information
efiring committed Jun 12, 2010
1 parent f98d889 commit f44627f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/matplotlib/windowing.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
"""
MS Windows-specific helper for TkAgg and FltkAgg backends.
With rcParams['tk.window_focus'] default of False, it is
effectively disabled.
It uses a tiny C++ extension module to access MS Win functions.
"""
from matplotlib import rcParams

try:
if not rcParams['tk.window_focus']:
raise ImportError
from _windowing import GetForegroundWindow, SetForegroundWindow
from matplotlib._windowing import GetForegroundWindow, SetForegroundWindow
except ImportError:
def GetForegroundWindow():
return 0
Expand Down

0 comments on commit f44627f

Please sign in to comment.