An icon for the doc viewer
[wxWidgets.git] / wxPython / demo / MultipleChoiceDialog.py
index 831a054d1995ed205141d931de7cfd7eff4eccd4..df85431ffa7386be5a3a5b8d06d8887650b9e789 100644 (file)
@@ -14,7 +14,9 @@ def runTest(frame, nb, log):
                                 "m.s.d.", lst)
 
     if (dlg.ShowModal() == wx.ID_OK):
                                 "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()
 
 #---------------------------------------------------------------------------
 
 
 #---------------------------------------------------------------------------