Bug with Open, Reopen and Close Project fixed
authorlbessard
Sun, 07 Sep 2008 16:46:15 +0200
changeset 249 a770187273e9
parent 248 444d4db3faea
child 250 01963beca027
Bug with Open, Reopen and Close Project fixed
Beremiz.py
--- a/Beremiz.py	Sun Sep 07 16:43:05 2008 +0200
+++ b/Beremiz.py	Sun Sep 07 16:46:15 2008 +0200
@@ -506,13 +506,13 @@
 ##            self.MenuBar.EnableTop(1, True)
 ##            self.MenuBar.EnableTop(2, True)
             self.FileMenu.Enable(wx.ID_SAVE, True)
-            self.FileMenu.Enable(wx.ID_CLOSE, True)
+            self.FileMenu.Enable(wx.ID_CLOSE_ALL, True)
             self.FileMenu.Enable(wx.ID_PROPERTIES, True)
         else:
 ##            self.MenuBar.EnableTop(1, False)
 ##            self.MenuBar.EnableTop(2, False)
             self.FileMenu.Enable(wx.ID_SAVE, False)
-            self.FileMenu.Enable(wx.ID_CLOSE, False)
+            self.FileMenu.Enable(wx.ID_CLOSE_ALL, False)
             self.FileMenu.Enable(wx.ID_PROPERTIES, False)
 
     def RefreshScrollBars(self):