X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ba55e8ab78bd7ef68d6002445ed6be3754743ab..d15b1f8509deec8b0679bbd9b680aafaf8d5caac:/wxPython/demo/Joystick.py diff --git a/wxPython/demo/Joystick.py b/wxPython/demo/Joystick.py index 394b2ec09f..c94e215507 100644 --- a/wxPython/demo/Joystick.py +++ b/wxPython/demo/Joystick.py @@ -994,12 +994,10 @@ def runTest(frame, nb, log): win = JoystickDemoPanel(nb, log) return win else: - dlg = wx.MessageDialog( - frame, 'wx.Joystick is not available on this platform.', - 'Sorry', wx.OK | wx.ICON_INFORMATION - ) - dlg.ShowModal() - dlg.Destroy() + from Main import MessagePanel + win = MessagePanel(nb, 'wx.Joystick is not available on this platform.', + 'Sorry', wx.ICON_WARNING) + return win #----------------------------------------------------------------------------