From 5be7162109bdcc4b0ca6bcfe650f4beaf6c04d5f Mon Sep 17 00:00:00 2001 From: Metallicow Date: Fri, 6 Feb 2015 15:21:59 -0600 Subject: [PATCH] return the dialog returncode, not None Makes the OK and Cancel buttons actually work now in the demo and other apps derived of the samples. TODO: Classic wxpy needs these fixes pushed also. --- wx/lib/agw/shortcuteditor.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wx/lib/agw/shortcuteditor.py b/wx/lib/agw/shortcuteditor.py index 6c512090..31f98593 100644 --- a/wx/lib/agw/shortcuteditor.py +++ b/wx/lib/agw/shortcuteditor.py @@ -2606,11 +2606,11 @@ class ShortcutEditor(wx.Dialog): over the application's main event loop (see :class:`EventLoopBase`) and which is destroyed when the dialog is dismissed. This also results in a call to :meth:`AppConsole.ProcessPendingEvents` (). - - """ + + """ self.PreShow() - wx.Dialog.ShowModal(self) + return wx.Dialog.ShowModal(self) def Show(self, show=True):