8000 Fixed double __init__ import in TkAgg. · matplotlib/matplotlib@17e6145 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 17e6145

Browse files
committed
Fixed double __init__ import in TkAgg.
svn path=/trunk/matplotlib/; revision=896
1 parent f0468e4 commit 17e6145

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/matplotlib/windowing.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import __init__ as params
1+
from matplotlib import rcParams
22

33
try:
4-
if not params.tk_window_focus():
4+
if not rcParams['tk.window_focus']:
55
raise ImportError
66
from _windowing import GetForegroundWindow, SetForegroundWindow
77
except ImportError:
@@ -17,6 +17,3 @@ def __init__(self):
1717
def __del__(self):
1818
SetForegroundWindow(self._shellWindow)
1919

20-
21-
22-

0 commit comments

Comments
 (0)
0