]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxMultipleChoiceDialog.py
regenerated after adding DEBUG_ options
[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 """
28
29
30
31
32
33 if __name__ == '__main__':
34 import sys,os
35 import run
36 run.main(['', os.path.basename(sys.argv[0])])