X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..69d818954b5e6e7b4b4e5093dd26dbe2d5f8546c:/wxPython/demo/FloatBar.py?ds=sidebyside diff --git a/wxPython/demo/FloatBar.py b/wxPython/demo/FloatBar.py index 0130f3be0e..8be8583649 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) #--------------------------------------------------------------------------- @@ -99,7 +107,7 @@ close it to make the toolbar return to its original position. 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:])