]>
Commit | Line | Data |
---|---|---|
be05b434 RD |
1 | import wx |
2 | ||
3 | if __name__ == "__main__": | |
4 | app = wx.PySimpleApp() | |
5 | choices = ["Alpha", "Baker", "Charlie", "Delta"] | |
6 | dialog = wx.SingleChoiceDialog(None, "Pick A Word", "Choices", | |
7 | choices) | |
8 | if dialog.ShowModal() == wx.ID_OK: | |
9 | print "You selected: %s\n" % dialog.GetStringSelection() | |
10 | ||
11 | dialog.Destroy() | |
12 |