psychopy/psychopy — pull request #86 by maebert (2011-11-18 14:41:51+00:00)
Title: Added support for creating dropdown selectors in a DLG

You can now supply a list of options to gui.addField via the new choices argument, which will render a wx.Choice instead of a wx.TextCtrl. The data saved will be the index of the selected item.

I also patched DlgFromDict to create a dropdown if the value of a key is a list or tuple -- THIS MAY BREAK EXISTING CODE. Not sure whether this is the the best move yet, if in doubt don't pull the changes around line 202.