]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ActiveX_FlashWindow.py
warning fix
[wxWidgets.git] / wxPython / demo / ActiveX_FlashWindow.py
index 14946614e54a1335df36416fb1c376f4e73a4e29..f7d3ef4df3237dfc91dd30528d5a310f0a87d48b 100644 (file)
@@ -68,10 +68,10 @@ def runTest(frame, nb, log):
         win = TestPanel(nb, log)
         return win
     else:
-        dlg = wx.MessageDialog(frame, 'This demo only works on MSW.',
-                          'Sorry', wx.OK | wx.ICON_INFORMATION)
-        dlg.ShowModal()
-        dlg.Destroy()
+        from Main import MessagePanel
+        win = MessagePanel(nb, 'This demo only works on Microsoft Windows.',
+                           'Sorry', wx.ICON_WARNING)
+        return win
 
 
 overview = """\