# HG changeset patch # User lbessard # Date 1231517469 -3600 # Node ID 1b1a3ee785daa92b5443db1b634538e003defe5d # Parent e837b67cb1849c0457a9cfebd62996674887878d Bug while closing PLCOpenEditor with Beremiz fixed (closing Beremiz project) diff -r e837b67cb184 -r 1b1a3ee785da 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)