]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ActiveX_IEHtmlWindow.py
warning fix
[wxWidgets.git] / wxPython / demo / ActiveX_IEHtmlWindow.py
index 698489e04bd4684fc73576efe0ca1c27eeba268b..c1356e4debf4acda5758af6e6fe2a78e14355769 100644 (file)
@@ -191,10 +191,10 @@ def runTest(frame, nb, log):
         win = TestPanel(nb, log, frame)
         return win
     else:
         win = TestPanel(nb, log, frame)
         return win
     else:
-        dlg = wx.MessageDialog(frame, 'This demo only works on Windows.',
-                          '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