]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxMultipleChoiceDialog.py
merged 2.2 branch
[wxWidgets.git] / wxPython / demo / wxMultipleChoiceDialog.py
diff --git a/wxPython/demo/wxMultipleChoiceDialog.py b/wxPython/demo/wxMultipleChoiceDialog.py
new file mode 100644 (file)
index 0000000..6e3fb5d
--- /dev/null
@@ -0,0 +1,27 @@
+
+from wxPython.wx          import *
+from wxPython.lib.dialogs import wxMultipleChoiceDialog
+
+#---------------------------------------------------------------------------
+
+def runTest(frame, nb, log):
+    lst = [ 'apple', 'pear', 'banana', 'coconut', 'orange',
+            'etc', 'etc..', 'etc...' ]
+    dlg = wxMultipleChoiceDialog(frame,
+                                 "Pick some from\n this list\nblah blah...",
+                                 "m.s.d.", lst)
+    if (dlg.ShowModal() == wxID_OK):
+        print "Selection:", dlg.GetValue(), " -> ", dlg.GetValueString()
+
+#---------------------------------------------------------------------------
+
+
+
+
+
+
+
+
+
+overview = """\
+"""