]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ActiveX_PDFWindow.py
removed extra class qualifier from inline method
[wxWidgets.git] / wxPython / demo / ActiveX_PDFWindow.py
index 35c3956c307bfe52ea8a385c9930fa88b17013a3..c7c52aab62d50d8bd870a9024101d43647e51a6e 100644 (file)
@@ -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