Fixed style setting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6bb000ec67
commit
8c14bc9170
@ -6,7 +6,7 @@ from wxPython.wx import *
|
|||||||
def runTest(frame, nb, log):
|
def runTest(frame, nb, log):
|
||||||
dlg = wxSingleChoiceDialog(frame, 'Test Single Choice', 'The Caption',
|
dlg = wxSingleChoiceDialog(frame, 'Test Single Choice', 'The Caption',
|
||||||
['zero', 'one', 'two', 'three', 'four', 'five',
|
['zero', 'one', 'two', 'three', 'four', 'five',
|
||||||
'six', 'seven', 'eight'], wxOK|wxCANCEL)
|
'six', 'seven', 'eight'], wxDEFAULT_DIALOG_STYLE|wxOK|wxCANCEL)
|
||||||
if dlg.ShowModal() == wxID_OK:
|
if dlg.ShowModal() == wxID_OK:
|
||||||
log.WriteText('You selected: %s\n' % dlg.GetStringSelection())
|
log.WriteText('You selected: %s\n' % dlg.GetStringSelection())
|
||||||
dlg.Destroy()
|
dlg.Destroy()
|
||||||
|
Loading…
Reference in New Issue
Block a user