Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f44627f

Browse files
committed
windowing: add module docstring, fix import
svn path=/trunk/matplotlib/; revision=8419
1 parent f98d889 commit f44627f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

lib/matplotlib/windowing.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
"""
2+
MS Windows-specific helper for TkAgg and FltkAgg backends.
3+
4+
With rcParams['tk.window_focus'] default of False, it is
5+
effectively disabled.
6+
7+
It uses a tiny C++ extension module to access MS Win functions.
8+
"""
19
from matplotlib import rcParams
210

311
try:
412
if not rcParams['tk.window_focus']:
513
raise ImportError
6-
from _windowing import GetForegroundWindow, SetForegroundWindow
14+
from matplotlib._windowing import GetForegroundWindow, SetForegroundWindow
715
except ImportError:
816
def GetForegroundWindow():
917
return 0

0 commit comments

Comments
 (0)