diff options
author | Chui Tey <chui.tey@advdata.com.au> | 2002-11-04 03:11:10 (GMT) |
---|---|---|
committer | Chui Tey <chui.tey@advdata.com.au> | 2002-11-04 03:11:10 (GMT) |
commit | 993e81a8a57fdd0dc5840c576d3c66638dfbacd0 (patch) | |
tree | 87213e11a04a56a8e13d947f86e60fca40ca9796 /Lib | |
parent | f0a4668e6f23da6e60c58933f31250cabc7213d6 (diff) | |
download | cpython-993e81a8a57fdd0dc5840c576d3c66638dfbacd0.zip cpython-993e81a8a57fdd0dc5840c576d3c66638dfbacd0.tar.gz cpython-993e81a8a57fdd0dc5840c576d3c66638dfbacd0.tar.bz2 |
619127: Recent File Menu Not Updating
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/IOBinding.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/idlelib/IOBinding.py b/Lib/idlelib/IOBinding.py index 10129e9..594ecf6 100644 --- a/Lib/idlelib/IOBinding.py +++ b/Lib/idlelib/IOBinding.py @@ -218,6 +218,8 @@ class IOBinding: self.set_filename(filename) self.text.mark_set("insert", "1.0") self.text.see("insert") + + self.updaterecentfileslist(filename) return True def decode(self, chars): @@ -294,6 +296,7 @@ class IOBinding: if self.writefile(self.filename): self.set_saved(1) self.text.focus_set() + return "break" def save_as(self, event): @@ -303,6 +306,8 @@ class IOBinding: self.set_filename(filename) self.set_saved(1) self.text.focus_set() + + self.updaterecentfileslist(filename) return "break" def save_a_copy(self, event): @@ -310,6 +315,8 @@ class IOBinding: if filename: self.writefile(filename) self.text.focus_set() + + self.updaterecentfileslist(filename) return "break" def writefile(self, filename): @@ -463,6 +470,12 @@ class IOBinding: return self.savedialog.show(initialdir=dir, initialfile=base) + def updaterecentfileslist(self,filename): + # + # Updates recent file list on all editor windows + # + self.editwin.UpdateRecentFilesList(filename) + def test(): root = Tk() class MyEditWin: |