]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/ActiveX_PDFWindow.py
apparently the check for too small rect is needed not only with wxNB_MULTILINE (see...
[wxWidgets.git] / wxPython / demo / ActiveX_PDFWindow.py
index 6281f3e1bd5e098ec1a2ac02462bc180cca8aa7d..c7c52aab62d50d8bd870a9024101d43647e51a6e 100644 (file)
@@ -67,10 +67,10 @@ def runTest(frame, nb, log):
         win = TestPanel(nb, log)
         return win
     else:
         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 = """\
 
 
 overview = """\