]> 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 d96e1ec7d466070401e7164d2db8f950f1b865c2..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
 
 #----------------------------------------------------------------------