Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f98d889 commit f44627fCopy full SHA for f44627f
1 file changed
lib/matplotlib/windowing.py
@@ -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
9
from matplotlib import rcParams
10
11
try:
12
if not rcParams['tk.window_focus']:
13
raise ImportError
- from _windowing import GetForegroundWindow, SetForegroundWindow
14
+ from matplotlib._windowing import GetForegroundWindow, SetForegroundWindow
15
except ImportError:
16
def GetForegroundWindow():
17
return 0
0 commit comments