X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/493f1553fdfd276ed9944c5f1c070ee34be13b52..a85585d595c8409fa5e51a28e60fa49428440d5e:/wxPython/demo/wxSingleChoiceDialog.py diff --git a/wxPython/demo/wxSingleChoiceDialog.py b/wxPython/demo/wxSingleChoiceDialog.py index 6e9c3a3af9..7330ac6020 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']) + 'six', 'seven', 'eight'], wxCHOICEDLG_STYLE) 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])])