Skip to content

Commit

Permalink
Merge d0d49f2 into bec1846
Browse files Browse the repository at this point in the history
  • Loading branch information
hsogo committed Feb 16, 2021
2 parents bec1846 + d0d49f2 commit 1444cca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion psychopy/app/builder/dialogs/paramCtrls.py
Expand Up @@ -160,7 +160,9 @@ def SetStringSelection(self, string):
if string not in self._choices:
self._choices.append(string)
self.SetItems(self._choices)
wx.Choice.SetStringSelection(self, string)
# Don't use wx.Choice.SetStringSelection here
# because label string is localized.
wx.Choice.SetSelection(self, self._choices.index(string))

class MultiChoiceCtrl(wx.CheckListBox, _ValidatorMixin):
def __init__(self, parent, valType,
Expand Down

0 comments on commit 1444cca

Please sign in to comment.