]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/MultipleChoiceDialog.py
Other doc updates
[wxWidgets.git] / wxPython / demo / MultipleChoiceDialog.py
index 3407650814f774816d4196aacfdd59505ed7ffe2..df85431ffa7386be5a3a5b8d06d8887650b9e789 100644 (file)
@@ -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:])