X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ba55e8ab78bd7ef68d6002445ed6be3754743ab..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/demo/Joystick.py?ds=sidebyside 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 #----------------------------------------------------------------------------