diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2003-06-05 02:34:04 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2003-06-05 02:34:04 (GMT) |
commit | d2f4861a0b52a2af5ea3395267a5c56541352f8f (patch) | |
tree | cea0a424c203fc971d91aaa8626593612707d913 /Lib/idlelib/FileList.py | |
parent | a1045567e01027b3a1b531181329cb11fae7d9f0 (diff) | |
download | cpython-d2f4861a0b52a2af5ea3395267a5c56541352f8f.zip cpython-d2f4861a0b52a2af5ea3395267a5c56541352f8f.tar.gz cpython-d2f4861a0b52a2af5ea3395267a5c56541352f8f.tar.bz2 |
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
Diffstat (limited to 'Lib/idlelib/FileList.py')
-rw-r--r-- | Lib/idlelib/FileList.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/FileList.py b/Lib/idlelib/FileList.py index e01ce3c..7a46afa 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() |