projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix wxMotif checkbox for Motif 1.2. (need to backport)
[wxWidgets.git]
/
wxPython
/
demo
/
PopupControl.py
diff --git
a/wxPython/demo/PopupControl.py
b/wxPython/demo/PopupControl.py
index d312a9319ce0a7cb11359ee0ebb64691b1c9e3a6..3cb72301718f8c6bcbabaa0ca9c529c3f4e422d2 100644
(file)
--- a/
wxPython/demo/PopupControl.py
+++ b/
wxPython/demo/PopupControl.py
@@
-1,15
+1,3
@@
-# 11/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Updated for wx namespace
-#
-# 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o Is it just me or are the graphics for the control not lining up right?
-#
-# 12/20/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o wxPopupControl -> PopupControl
-#
import wx
import wx.lib.popupctl as pop
import wx
import wx.lib.popupctl as pop
@@
-80,8
+68,14
@@
class TestPanel(wx.Panel):
#----------------------------------------------------------------------
def runTest(frame, nb, log):
#----------------------------------------------------------------------
def runTest(frame, nb, log):
- win = TestPanel(nb, log)
- return win
+ if wx.Platform == "__WXMAC__":
+ from Main import MessagePanel
+ win = MessagePanel(nb, 'This demo currently fails on the Mac.',
+ 'Sorry', wx.ICON_WARNING)
+ return win
+ else:
+ win = TestPanel(nb, log)
+ return win
#----------------------------------------------------------------------
#----------------------------------------------------------------------
@@
-89,12
+83,12
@@
overview = """<html><body>
<h2><center>PopupControl</center></h2>
PopupControl is a class that can display a value and has a button
<h2><center>PopupControl</center></h2>
PopupControl is a class that can display a value and has a button
-that will popup another window similar to how a wxComboBox works. The
+that will popup another window similar to how a wx
.
ComboBox works. The
popup window can contain whatever is needed to edit the value. This
popup window can contain whatever is needed to edit the value. This
-example uses a wxCalendarCtrl.
+example uses a wx
.
CalendarCtrl.
-<p>Currently a wxDialog is used for the popup. Eventually a
-wxPopupWindow should be used...
+<p>Currently a wx
.
Dialog is used for the popup. Eventually a
+wx
.
PopupWindow should be used...
</body></html>
"""
</body></html>
"""
@@
-103,5
+97,5
@@
wxPopupWindow should be used...
if __name__ == '__main__':
import sys,os
import run
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:]
)