]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/SplitTree.py
tweaked build ordering a bit
[wxWidgets.git] / wxPython / demo / SplitTree.py
index 9f12a935bcd7c2f6fa9bff0b05460c0ec0408793..0f7b4da9e4db647624a6ef6e0242c4557ef3144a 100644 (file)
@@ -105,7 +105,7 @@ class TestPanel(wx.Panel):
 
         valueWindow = TestValueWindow(splitter, style=wx.NO_BORDER)
 
-        splitter.SplitVertically(tree, valueWindow, 150)
+        wx.CallAfter(splitter.SplitVertically, tree, valueWindow, 150)
         scroller.SetTargetWindow(tree)
         scroller.EnableScrolling(False, False)
 
@@ -122,8 +122,10 @@ class TestPanel(wx.Panel):
 
 def runTest(frame, nb, log):
     if wx.Platform == "__WXMAC__":
-        wx.MessageBox("This demo currently fails on the Mac. The problem is being looked into...", "Sorry")
-        return
+        from Main import MessagePanel
+        win = MessagePanel(nb, 'This demo currently fails on the Mac. The problem is being looked into...',
+                           'Sorry', wx.ICON_WARNING)
+        return win
 
     win = TestPanel(nb, log)
     return win