]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxSingleChoiceDialog.py
Fix Cygwin and MinGW compilation
[wxWidgets.git] / wxPython / demo / wxSingleChoiceDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def runTest(frame, nb, log):
7 dlg = wxSingleChoiceDialog(frame, 'Test Single Choice', 'The Caption',
8 ['zero', 'one', 'two', 'three', 'four', 'five',
98624b49 9 'six', 'seven', 'eight'], wxOK|wxCANCEL)
cf694132
RD
10 if dlg.ShowModal() == wxID_OK:
11 log.WriteText('You selected: %s\n' % dlg.GetStringSelection())
12 dlg.Destroy()
13
14#---------------------------------------------------------------------------
15
16
17
18
19
20
21
22
23
24
25
26
27
28overview = """\
29This class represents a dialog that shows a list of strings, and allows the user to select one. Double-clicking on a list item is equivalent to single-clicking and then pressing OK.
30
cf694132 31"""
493f1553 32