Menu

Commit [r896]  Maximize  Restore  History

Fixed double __init__ import in TkAgg.

jaytmiller 2005-01-28

changed /trunk/matplotlib/lib/matplotlib/windowing.py
/trunk/matplotlib/lib/matplotlib/windowing.py Diff Switch to side-by-side view
--- a/trunk/matplotlib/lib/matplotlib/windowing.py
+++ b/trunk/matplotlib/lib/matplotlib/windowing.py
@@ -1,7 +1,7 @@
-import __init__ as params
+from matplotlib import rcParams
 
 try:
-	if not params.tk_window_focus():
+	if not rcParams['tk.window_focus']:
 		raise ImportError
 	from _windowing import GetForegroundWindow, SetForegroundWindow
 except ImportError:
@@ -17,6 +17,3 @@
     def __del__(self):
 	SetForegroundWindow(self._shellWindow)
 
-
-
-
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.