]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PopupWindow.py
#include "wx/settings.h" for wxSystemSettings
[wxWidgets.git] / wxPython / demo / PopupWindow.py
index daea319286cd72793595a390e9b0e71fb2e6ff44..39d4080c4c11b90c61144ba0fe8e3de06d89c583 100644 (file)
@@ -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:])