From: Robin Dunn Date: Mon, 15 Mar 2004 23:08:27 +0000 (+0000) Subject: write selection info to the log X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/da65a4395980fc9f4100d684838ad873f8c3962c?ds=inline write selection info to the log git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/MultipleChoiceDialog.py b/wxPython/demo/MultipleChoiceDialog.py index 831a054d19..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() #---------------------------------------------------------------------------