X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..52f52ebc4e0be6a9899d328b08db9eb14629d219:/wxPython/demo/FloatBar.py diff --git a/wxPython/demo/FloatBar.py b/wxPython/demo/FloatBar.py index 0130f3be0e..6b75e9dbee 100644 --- a/wxPython/demo/FloatBar.py +++ b/wxPython/demo/FloatBar.py @@ -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) #---------------------------------------------------------------------------