X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c8ad70ad4de074ff95b5e3629ebc272551921c0..97ad053bffe0fe5d8862578bae4e7492592b5702:/wxPython/demo/ActiveX_PDFWindow.py

diff --git a/wxPython/demo/ActiveX_PDFWindow.py b/wxPython/demo/ActiveX_PDFWindow.py
index 6281f3e1bd..c7c52aab62 100644
--- a/wxPython/demo/ActiveX_PDFWindow.py
+++ b/wxPython/demo/ActiveX_PDFWindow.py
@@ -67,10 +67,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 = """\