summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2006-07-24 18:05:51 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2006-07-24 18:05:51 (GMT)
commita2946a437ee7886e6192b9e02725b8a04cdc80ae (patch)
treeda0a36f7b5334342b544cb8a4aa444d0d93930c2
parentb3c4d16e688d073dae92f272d66b6efa4b70a734 (diff)
downloadcpython-a2946a437ee7886e6192b9e02725b8a04cdc80ae.zip
cpython-a2946a437ee7886e6192b9e02725b8a04cdc80ae.tar.gz
cpython-a2946a437ee7886e6192b9e02725b8a04cdc80ae.tar.bz2
- EditorWindow.test() was failing. Bug 1417598
M EditorWindow.py M ScriptBinding.py M NEWS.txt
-rw-r--r--Lib/idlelib/EditorWindow.py5
-rw-r--r--Lib/idlelib/NEWS.txt2
-rw-r--r--Lib/idlelib/ScriptBinding.py2
3 files changed, 6 insertions, 3 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 397d12e..cb166cf 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -95,11 +95,12 @@ class EditorWindow(object):
self.tkinter_vars = flist.vars
#self.top.instance_dict makes flist.inversedict avalable to
#configDialog.py so it can access all EditorWindow instaces
- self.top.instance_dict=flist.inversedict
+ self.top.instance_dict = flist.inversedict
else:
self.tkinter_vars = {} # keys: Tkinter event names
# values: Tkinter variable instances
- self.recent_files_path=os.path.join(idleConf.GetUserCfgDir(),
+ self.top.instance_dict = {}
+ self.recent_files_path = os.path.join(idleConf.GetUserCfgDir(),
'recent-files.lst')
self.vbar = vbar = Scrollbar(top, name='vbar')
self.text_frame = text_frame = Frame(top)
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index ba624e5..e4b7ecd 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -3,6 +3,8 @@ What's New in IDLE 1.2c1?
*Release date: XX-XXX-2006*
+- EditorWindow.test() was failing. Bug 1417598
+
- EditorWindow failed when used stand-alone if sys.ps1 not set.
Bug 1010370 Dave Florek
diff --git a/Lib/idlelib/ScriptBinding.py b/Lib/idlelib/ScriptBinding.py
index 084c607..878425d 100644
--- a/Lib/idlelib/ScriptBinding.py
+++ b/Lib/idlelib/ScriptBinding.py
@@ -51,7 +51,7 @@ class ScriptBinding:
# Provide instance variables referenced by Debugger
# XXX This should be done differently
self.flist = self.editwin.flist
- self.root = self.flist.root
+ self.root = self.editwin.root
def check_module_event(self, event):
filename = self.getfilename()