From d2f4861a0b52a2af5ea3395267a5c56541352f8f Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Thu, 5 Jun 2003 02:34:04 +0000 Subject: SF 748973 Guido van Rossum patch New Window should save in the directory of the Editor Window from which it was selected. M EditorWindow.py M FileList.py M IOBinding.py --- Lib/idlelib/FileList.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/idlelib/FileList.py') diff --git a/Lib/idlelib/FileList.py b/Lib/idlelib/FileList.py index e01ce3c47c..7a46afaa02 100644 --- a/Lib/idlelib/FileList.py +++ b/Lib/idlelib/FileList.py @@ -58,8 +58,8 @@ class FileList: if edit is not None and lineno is not None: edit.gotoline(lineno) - def new(self): - return self.EditorWindow(self) + def new(self, filename=None): + return self.EditorWindow(self, filename) def new_callback(self, event): self.new() -- cgit v1.2.1