--- 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)