X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..414dfb5804fc568b26fec3f8a8ecc2f25addedfd:/wxPython/demo/PopupControl.py diff --git a/wxPython/demo/PopupControl.py b/wxPython/demo/PopupControl.py index d312a9319c..6f3bf12894 100644 --- a/wxPython/demo/PopupControl.py +++ b/wxPython/demo/PopupControl.py @@ -1,15 +1,3 @@ -# 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# -# 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Is it just me or are the graphics for the control not lining up right? -# -# 12/20/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o wxPopupControl -> PopupControl -# import wx import wx.lib.popupctl as pop @@ -80,8 +68,13 @@ class TestPanel(wx.Panel): #---------------------------------------------------------------------- def runTest(frame, nb, log): - win = TestPanel(nb, log) - return win + if wx.Platform == "__WXMAC__": + wx.MessageBox("This demo currently fails on the Mac.", + "Sorry") + return + else: + win = TestPanel(nb, log) + return win #---------------------------------------------------------------------- @@ -89,12 +82,12 @@ overview = """
Currently a wxDialog is used for the popup. Eventually a -wxPopupWindow should be used... +
Currently a wx.Dialog is used for the popup. Eventually a +wx.PopupWindow should be used... """ @@ -103,5 +96,5 @@ wxPopupWindow 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:])