]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/FloatBar.py
Script updates
[wxWidgets.git] / wxPython / demo / FloatBar.py
index 0130f3be0ea0cf4351fa324225d76985a764f02f..6b75e9dbee0fad49db35f9bf671c69c82bc7e0e3 100644 (file)
@@ -81,9 +81,17 @@ class TestFloatBar(wx.Frame):
 #---------------------------------------------------------------------------
 
 def runTest(frame, nb, log):
-    win = TestFloatBar(frame, log)
-    frame.otherWin = win
-    win.Show(True)
+    if wx.Platform == "__WXMAC__":
+        dlg = wx.MessageDialog(
+                frame, 'FloatBar does not work well on this platform.',
+                'Sorry', wx.OK | wx.ICON_INFORMATION
+                )
+        dlg.ShowModal()
+        dlg.Destroy()
+    else:
+        win = TestFloatBar(frame, log)
+        frame.otherWin = win
+        win.Show(True)
 
 #---------------------------------------------------------------------------