X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..66394199cf03f0e9a3a675fe9829d31463ad38bb:/wxPython/demo/MultipleChoiceDialog.py diff --git a/wxPython/demo/MultipleChoiceDialog.py b/wxPython/demo/MultipleChoiceDialog.py index 3407650814..df85431ffa 100644 --- a/wxPython/demo/MultipleChoiceDialog.py +++ b/wxPython/demo/MultipleChoiceDialog.py @@ -14,7 +14,9 @@ def runTest(frame, nb, log): "m.s.d.", lst) if (dlg.ShowModal() == wx.ID_OK): - print "Selection:", dlg.GetValue(), " -> ", dlg.GetValueString() + log.write("Selection: %s -> %s\n" % (dlg.GetValue(), dlg.GetValueString())) + + dlg.Destroy() #--------------------------------------------------------------------------- @@ -77,4 +79,4 @@ methods applicable to that class. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])