X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..db679b8c836e69c111cdc31e62cf92cebe4f938f:/wxPython/demo/PopupControl.py diff --git a/wxPython/demo/PopupControl.py b/wxPython/demo/PopupControl.py index 8b824b21f6..3cb7230171 100644 --- a/wxPython/demo/PopupControl.py +++ b/wxPython/demo/PopupControl.py @@ -68,8 +68,14 @@ class TestPanel(wx.Panel): #---------------------------------------------------------------------- def runTest(frame, nb, log): - win = TestPanel(nb, log) - return win + if wx.Platform == "__WXMAC__": + from Main import MessagePanel + win = MessagePanel(nb, 'This demo currently fails on the Mac.', + 'Sorry', wx.ICON_WARNING) + return win + else: + win = TestPanel(nb, log) + return win #---------------------------------------------------------------------- @@ -91,5 +97,5 @@ wx.PopupWindow should be used... 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:])