Skip to content

Commit

Permalink
BF: Enable/disable OK button in Loop properties when text is edited r…
Browse files Browse the repository at this point in the history
…ather than when button is pressed, meaning it can be re-enabled when a mistake is fixed
  • Loading branch information
Todd authored and Todd committed Nov 2, 2020
1 parent 2203928 commit 3a1104f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psychopy/app/builder/dialogs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,6 +1341,7 @@ def makeConstantsCtrls(self):
self.Bind(wx.EVT_BUTTON, self.onBrowseTrialsFile,
ctrls.browseCtrl)
ctrls.valueCtrl.Bind(wx.EVT_RIGHT_DOWN, self.viewConditions)
ctrls.valueCtrl.Bind(wx.EVT_TEXT, self.doValidate)
panelSizer.Add(ctrls.nameCtrl, [row, 0])
panelSizer.Add(ctrls.valueCtrl, [row, 1])
panelSizer.Add(ctrls.browseCtrl, [row, 2])
Expand Down

0 comments on commit 3a1104f

Please sign in to comment.