]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PopupControl.py
workaround bug in SWIG's t_output_helper
[wxWidgets.git] / wxPython / demo / PopupControl.py
index 8b824b21f64c203d47f69da3e17ee8015b3c6ca5..6f3bf1289414edd6da8160e573b96e44a59b45e4 100644 (file)
@@ -68,8 +68,13 @@ class TestPanel(wx.Panel):
 #----------------------------------------------------------------------
 
 def runTest(frame, nb, log):
-    win = TestPanel(nb, log)
-    return win
+    if wx.Platform == "__WXMAC__":
+        wx.MessageBox("This demo currently fails on the Mac.",
+                     "Sorry")
+        return
+    else:
+        win = TestPanel(nb, log)
+        return win
 
 #----------------------------------------------------------------------
 
@@ -91,5 +96,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:])