]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PopupControl.py
apparently the check for too small rect is needed not only with wxNB_MULTILINE (see...
[wxWidgets.git] / wxPython / demo / PopupControl.py
index 8b824b21f64c203d47f69da3e17ee8015b3c6ca5..3cb72301718f8c6bcbabaa0ca9c529c3f4e422d2 100644 (file)
@@ -68,8 +68,14 @@ class TestPanel(wx.Panel):
 #----------------------------------------------------------------------
 
 def runTest(frame, nb, log):
-    win = TestPanel(nb, log)
-    return win
+    if wx.Platform == "__WXMAC__":
+        from Main import MessagePanel
+        win = MessagePanel(nb, 'This demo currently fails on the Mac.',
+                           'Sorry', wx.ICON_WARNING)
+        return win
+    else:
+        win = TestPanel(nb, log)
+        return win
 
 #----------------------------------------------------------------------
 
@@ -91,5 +97,5 @@ wx.PopupWindow should be used...
 if __name__ == '__main__':
     import sys,os
     import run
-    run.main(['', os.path.basename(sys.argv[0])])
+    run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])