# HG changeset patch # User Andrey Skvortsov # Date 1482417598 -10800 # Node ID bd03e1217fa56fcfec36b8f6735bf45a6b0d2534 # Parent 5e64d552b25a7584f46a06fce0d811ffb480d6af fix close button in system menu for AboutDialog on Windows If SetEscapeId receives wx.ID_CLOSE as parameter, then on Windows with wxPython 2.8 system close button in title bar stops working. If wx.ID_CANCEL or wx.ID_OK is used in SetEscapeId call, then close button works correctly. diff -r 5e64d552b25a -r bd03e1217fa5 dialogs/AboutDialog.py --- a/dialogs/AboutDialog.py Thu Dec 22 14:38:56 2016 +0300 +++ b/dialogs/AboutDialog.py Thu Dec 22 17:39:58 2016 +0300 @@ -62,7 +62,7 @@ credits = wx.Button(self, id=wx.ID_ABOUT, label=_("C&redits")) license = wx.Button(self, label=_("&License")) - close = wx.Button(self, id=wx.ID_CLOSE, label=_("&Close")) + close = wx.Button(self, id=wx.ID_CANCEL, label=_("&Close")) btnSizer = wx.BoxSizer(wx.HORIZONTAL) btnSizer.Add(credits, flag=wx.CENTER | wx.LEFT | wx.RIGHT, border=5)