]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/Joystick.py
Another package name fix
[wxWidgets.git] / wxPython / demo / Joystick.py
index 394b2ec09f779ca7a1e3a494c3e22fc8e629d2a9..c94e2155071aa36f3ab0d4096b2e849843067e43 100644 (file)
@@ -994,12 +994,10 @@ def runTest(frame, nb, log):
         win = JoystickDemoPanel(nb, log)
         return win
     else:
         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
     
 
 #----------------------------------------------------------------------------
     
 
 #----------------------------------------------------------------------------