From: Kurt B. Kaiser Date: Mon, 24 Jul 2006 18:05:51 +0000 (+0000) Subject: - EditorWindow.test() was failing. Bug 1417598 X-Git-Tag: v2.5b3~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2946a437ee7886e6192b9e02725b8a04cdc80ae;p=python - EditorWindow.test() was failing. Bug 1417598 M EditorWindow.py M ScriptBinding.py M NEWS.txt --- diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 397d12e0e9..cb166cf1a6 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 ba624e57d0..e4b7ecdeca 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 084c60701e..878425dc1e 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()