X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..57fbd4359a6ef6ea37cd90cb61d6848655cf4899:/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:])