Bug with new icons and Beremiz integration fixed
authorlbessard
Thu, 06 Mar 2008 14:22:36 +0100
changeset 186 fa7c2e4774be
parent 185 fdc8a59b02bd
child 187 183486133b96
Bug with new icons and Beremiz integration fixed
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Thu Mar 06 12:03:17 2008 +0100
+++ b/PLCOpenEditor.py	Thu Mar 06 14:22:36 2008 +0100
@@ -307,10 +307,10 @@
         self.SetMenuBar(self.MenuBar)
         self.Bind(wx.EVT_CLOSE, self.OnCloseFrame)
         if not self.ModeSolo:
-            self.Bind(wx.EVT_MENU, self.OnCloseTabMenu, id=ID_PLCOPENEDITORFILEMENUITEMS2)
-            self.Bind(wx.EVT_MENU, self.OnSaveProjectMenu, id=ID_PLCOPENEDITORFILEMENUITEMS5)
-            accel = wx.AcceleratorTable([wx.AcceleratorEntry(wx.ACCEL_CTRL, 119, ID_PLCOPENEDITORFILEMENUITEMS2),
-                                         wx.AcceleratorEntry(wx.ACCEL_CTRL, 83, ID_PLCOPENEDITORFILEMENUITEMS5)])
+            self.Bind(wx.EVT_MENU, self.OnCloseTabMenu, id=wx.ID_CLOSE)
+            self.Bind(wx.EVT_MENU, self.OnSaveProjectMenu, id=wx.ID_SAVE)
+            accel = wx.AcceleratorTable([wx.AcceleratorEntry(wx.ACCEL_CTRL, 119, wx.ID_CLOSE),
+                                         wx.AcceleratorEntry(wx.ACCEL_CTRL, 83, wx.ID_SAVE)])
             self.SetAcceleratorTable(accel)
         
         if wx.VERSION >= (2, 8, 0):