]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/FloatBar.py
Other doc updates
[wxWidgets.git] / wxPython / demo / FloatBar.py
index 0130f3be0ea0cf4351fa324225d76985a764f02f..8be8583649be3bfcee35ce25bf901281c7f19d5c 100644 (file)
@@ -81,9 +81,17 @@ class TestFloatBar(wx.Frame):
 #---------------------------------------------------------------------------
 
 def runTest(frame, nb, log):
 #---------------------------------------------------------------------------
 
 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
 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:])