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
This commit is contained in:
Kurt B. Kaiser 2003-06-05 02:34:04 +00:00
parent a1045567e0
commit d2f4861a0b
3 changed files with 21 additions and 8 deletions

View file

@ -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()