PLCOpenEditor.py
changeset 298 1b1a3ee785da
parent 294 4a36f2ec8967
child 301 b5e564608b9e
--- 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)