]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/PopupWindow.py
Removed some test code
[wxWidgets.git] / wxPython / demo / PopupWindow.py
index daea319286cd72793595a390e9b0e71fb2e6ff44..83d7056a6eeebe94e7f0aaa270f951c819dda845 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()