]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxMultipleChoiceDialog.py
fixed extraneous scrolling when scrollbars are added/removed (patch 788026; bug 746618)
[wxWidgets.git] / wxPython / demo / wxMultipleChoiceDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3from wxPython.lib.dialogs import wxMultipleChoiceDialog
4
5#---------------------------------------------------------------------------
6
7def 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
26overview = """\
27"""
1fded56b
RD
28
29
30
31
32
33if __name__ == '__main__':
34 import sys,os
35 import run
36 run.main(['', os.path.basename(sys.argv[0])])