Can't use NameError to check for NotIMplemented anymore. Just
explicitly check platforms until I figure out a better way to do it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user