projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
old compilation fix for AIX from Ian Brown
[wxWidgets.git]
/
wxPython
/
demo
/
wxPopupWindow.py
diff --git
a/wxPython/demo/wxPopupWindow.py
b/wxPython/demo/wxPopupWindow.py
index 055f1c25cc647a4500113d0f87162ad548478fc1..014e21c8a23fa8ed42eb3d46aa55afe480b7fd2e 100644
(file)
--- a/
wxPython/demo/wxPopupWindow.py
+++ b/
wxPython/demo/wxPopupWindow.py
@@
-1,5
+1,12
@@
from wxPython.wx import *
from wxPython.wx import *
+havePopupWindow = 1
+try:
+ wxPopupWindow
+except NameError:
+ havePopupWindow = 0
+ wxPopupWindow = wxPopupTransientWindow = wxWindow
+
#---------------------------------------------------------------------------
class TestPopup(wxPopupWindow):
#---------------------------------------------------------------------------
class TestPopup(wxPopupWindow):
@@
-158,8
+165,14
@@
class TestPopupWithListbox(wxPopupWindow):
#---------------------------------------------------------------------------
def runTest(frame, nb, log):
#---------------------------------------------------------------------------
def runTest(frame, nb, log):
- win = TestPanel(nb, log)
- return win
+ if havePopupWindow:
+ win = TestPanel(nb, log)
+ return win
+ else:
+ dlg = wxMessageDialog(frame, 'wxPopupWindow is not available on this platform.',
+ 'Sorry', wxOK | wxICON_INFORMATION)
+ dlg.ShowModal()
+ dlg.Destroy()
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
@@
-168,3
+181,12
@@
def runTest(frame, nb, log):
overview = """\
"""
overview = """\
"""
+
+
+
+
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
+