X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..cefae4bc3cac29222757afbd605867b34f421af9:/wxPython/demo/PopupWindow.py diff --git a/wxPython/demo/PopupWindow.py b/wxPython/demo/PopupWindow.py index daea319286..39d4080c4c 100644 --- a/wxPython/demo/PopupWindow.py +++ b/wxPython/demo/PopupWindow.py @@ -9,9 +9,7 @@ import wx havePopupWindow = 1 -try: - wx.PopupWindow -except NameError: +if wx.Platform == '__WXMAC__': havePopupWindow = 0 wx.PopupWindow = wx.PopupTransientWindow = wx.Window @@ -199,7 +197,6 @@ def runTest(frame, nb, log): frame, 'wx.PopupWindow is not available on this platform.', 'Sorry', wx.OK | wx.ICON_INFORMATION ) - dlg.ShowModal() dlg.Destroy() @@ -213,5 +210,5 @@ overview = """\ 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:])