Skip to content

Commit 7d02c82

Browse files
ToddTodd
authored andcommitted
BF: Resolves a standoff between autoDraw being needed for editables and Form needing to overload its children's draw commands - set autoDraw to be True for item controls, but bypass the attributeSetter so it doesn't get added to _toDraw, then set editable manually
1 parent ceb51c1 commit 7d02c82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

psychopy/visual/form.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,8 @@ def setAutoDraw(self, value, log=None):
785785
"""
786786
for i in self.items:
787787
if i['responseCtrl']:
788-
i['responseCtrl'].setAutoDraw(value)
788+
i['responseCtrl'].__dict__['autoDraw'] = value
789+
self.win.addEditable(i['responseCtrl'])
789790
BaseVisualStim.setAutoDraw(self, value, log)
790791

791792
def draw(self):

0 commit comments

Comments
 (0)