]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxMultipleChoiceDialog.py
Fix for Python 2.2 defining NDEBUG and conflicting with __WXDEBUG__
[wxWidgets.git] / wxPython / demo / wxMultipleChoiceDialog.py
1
2 from wxPython.wx import *
3 from wxPython.lib.dialogs import wxMultipleChoiceDialog
4
5 #---------------------------------------------------------------------------
6
7 def runTest(frame, nb, log):
8 lst = [ 'apple', 'pear', 'banana', 'coconut', 'orange',
9 'etc', 'etc..', 'etc...' ]
10 dlg = wxMultipleChoiceDialog(frame,
11 "Pick some from\n this list\nblah blah...",
12 "m.s.d.", lst)
13 if (dlg.ShowModal() == wxID_OK):
14 print "Selection:", dlg.GetValue(), " -> ", dlg.GetValueString()
15
16 #---------------------------------------------------------------------------
17
18
19
20
21
22
23
24
25
26 overview = """\
27 """