]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/samples/wxPIA_book/Chapter-09/choice_box.py
3 if __name__
== "__main__":
5 choices
= ["Alpha", "Baker", "Charlie", "Delta"]
6 dialog
= wx
.SingleChoiceDialog(None, "Pick A Word", "Choices",
8 if dialog
.ShowModal() == wx
.ID_OK
:
9 print "You selected: %s\n" % dialog
.GetStringSelection()