]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/SingleChoiceDialog.py
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 dlg
= wx
.SingleChoiceDialog(
8 frame
, 'Test Single Choice', 'The Caption',
9 ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'],
13 if dlg
.ShowModal() == wx
.ID_OK
:
14 log
.WriteText('You selected: %s\n' % dlg
.GetStringSelection())
18 #---------------------------------------------------------------------------
24 This class represents a dialog that shows a list of strings, and allows the user
25 to select one. Double-clicking on a list item is equivalent to single-clicking
28 As with all dialogs, be sure to retrieve the information you need BEFORE you
34 if __name__
== '__main__':
37 run
.main(['', os
.path
.basename(sys
.argv
[0])] + sys
.argv
[1:])