X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98624b49d3abd7ebc1d5f8df4209f563b3e3323f..bd76e17e0f94ccb5459d0510b0234237aa2060f7:/wxPython/demo/wxSingleChoiceDialog.py diff --git a/wxPython/demo/wxSingleChoiceDialog.py b/wxPython/demo/wxSingleChoiceDialog.py index df2d2b1b0e..c97ec63c63 100644 --- a/wxPython/demo/wxSingleChoiceDialog.py +++ b/wxPython/demo/wxSingleChoiceDialog.py @@ -6,7 +6,7 @@ from wxPython.wx import * def runTest(frame, nb, log): dlg = wxSingleChoiceDialog(frame, 'Test Single Choice', 'The Caption', ['zero', 'one', 'two', 'three', 'four', 'five', - 'six', 'seven', 'eight'], wxOK|wxCANCEL) + 'six', 'seven', 'eight'], wxDEFAULT_DIALOG_STYLE|wxOK|wxCANCEL) if dlg.ShowModal() == wxID_OK: log.WriteText('You selected: %s\n' % dlg.GetStringSelection()) dlg.Destroy() @@ -16,17 +16,17 @@ def runTest(frame, nb, log): +overview = """\ +This 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. +""" - - - - - -overview = """\ -This 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. - -""" +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])])