]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxMultipleChoiceDialog.py
2 from wxPython
.wx
import *
3 from wxPython
.lib
.dialogs
import wxMultipleChoiceDialog
5 #---------------------------------------------------------------------------
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...",
13 if (dlg
.ShowModal() == wxID_OK
):
14 print "Selection:", dlg
.GetValue(), " -> ", dlg
.GetValueString()
16 #---------------------------------------------------------------------------