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.
This commit is contained in:
Metallicow
2015-02-06 15:21:59 -06:00
parent 62faf1f13c
commit 5be7162109

View File

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