Bug while closing PLCOpenEditor with Beremiz fixed (closing Beremiz project)
authorlbessard
Fri, 09 Jan 2009 17:11:09 +0100
changeset 298 1b1a3ee785da
parent 297 e837b67cb184
child 299 15669fe26e56
Bug while closing PLCOpenEditor with Beremiz fixed (closing Beremiz project)
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Fri Jan 09 17:09:59 2009 +0100
+++ b/PLCOpenEditor.py	Fri Jan 09 17:11:09 2009 +0100
@@ -226,7 +226,7 @@
             AppendMenu(parent, help='', id=wx.ID_EXIT,
                   kind=wx.ITEM_NORMAL, text=u'Quit\tCTRL+Q')
         else:
-            AppendMenu(parent, help='', id=wx.ID_CLOSE_ALL,
+            AppendMenu(parent, help='', id=wx.ID_STOP,
                   kind=wx.ITEM_NORMAL, text=u'Close\tCTRL+Q')
         
         if self.ModeSolo:
@@ -249,7 +249,7 @@
         if self.ModeSolo:
             self.Bind(wx.EVT_MENU, self.OnQuitMenu, id=wx.ID_EXIT)
         else:
-            self.Bind(wx.EVT_MENU, self.OnQuitMenu, id=wx.ID_CLOSE_ALL)
+            self.Bind(wx.EVT_MENU, self.OnQuitMenu, id=wx.ID_STOP)
     
     def _init_coll_EditMenu_Items(self, parent):
         AppendMenu(parent, help='', id=wx.ID_REFRESH,
@@ -2873,7 +2873,6 @@
             else:
                 event(self, function)
     
-
     def __init__(self, parent, message, caption = "Please enter text", defaultValue = "", 
                        style = wx.OK|wx.CANCEL|wx.CENTRE, pos = wx.DefaultPosition):
         wx.TextEntryDialog.__init__(self, parent, message, caption, defaultValue, style, pos)