X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7c75283f2144469e8fa6a24ca285b42fab69a6b..d8746da256e827b700aaf173669bd5bbc97025c7:/wxPython/demo/ActiveX_PDFWindow.py

diff --git a/wxPython/demo/ActiveX_PDFWindow.py b/wxPython/demo/ActiveX_PDFWindow.py
index 35c3956c30..c7c52aab62 100644
--- a/wxPython/demo/ActiveX_PDFWindow.py
+++ b/wxPython/demo/ActiveX_PDFWindow.py
@@ -67,13 +67,14 @@ 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 = """\<html><body>
+overview = """\
+<html><body>
 <h2>wx.lib.pdfwin.PDFWindow</h2>
 
 The wx.lib.pdfwin.PDFWindow class is another example of using ActiveX