[Idle-dev] CVS: idle EditorWindow.py,1.49,1.50 FileList.py,1.5,1.6 WindowList.py,1.4,1.5
Kurt B. Kaiser
kbk@users.sourceforge.net
Fri, 06 Jun 2003 14:58:41 -0700
Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv971
Modified Files:
EditorWindow.py FileList.py WindowList.py
Log Message:
1. Update WindowList registry when filename changes so that
Window menu updates.
2. Display Python Shell window in Window menu
3. Remove some dead code in FileList.py
M EditorWindow.py
M FileList.py
M WindowList.py
Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/idlefork/idle/EditorWindow.py,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -r1.49 -r1.50
*** EditorWindow.py 5 Jun 2003 11:36:55 -0000 1.49
--- EditorWindow.py 6 Jun 2003 21:58:38 -0000 1.50
***************
*** 487,490 ****
--- 487,491 ----
self.flist.filename_changed_edit(self)
self.saved_change_hook()
+ self.top.update_windowlist_registry(self)
if self.ispythonsource(self.io.filename):
self.addcolorizer()
Index: FileList.py
===================================================================
RCS file: /cvsroot/idlefork/idle/FileList.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** FileList.py 5 Jun 2003 02:34:04 -0000 1.5
--- FileList.py 6 Jun 2003 21:58:38 -0000 1.6
***************
*** 62,69 ****
return self.EditorWindow(self, filename)
- def new_callback(self, event):
- self.new()
- return "break"
-
def close_all_callback(self, event):
for edit in self.inversedict.keys():
--- 62,65 ----
Index: WindowList.py
===================================================================
RCS file: /cvsroot/idlefork/idle/WindowList.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** WindowList.py 4 Oct 2002 21:54:41 -0000 1.4
--- WindowList.py 6 Jun 2003 21:58:38 -0000 1.5
***************
*** 30,36 ****
list.sort()
for title, window in list:
- if title == "Python Shell":
- # Hack -- until we have a better way to this
- continue
menu.add_command(label=title, command=window.wakeup)
--- 30,33 ----
***************
*** 72,75 ****
--- 69,75 ----
if not registry.dict:
self.quit()
+
+ def update_windowlist_registry(self, window):
+ registry.call_callbacks()
def get_title(self):