Skip to content

Commit 8253f06

Browse files
ToddTodd
authored andcommitted
BF: Editable textboxes were still autodrawing when clicked in subsequent routines
1 parent 17a29cf commit 8253f06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

psychopy/visual/basevisual.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ def autoDraw(self, value):
170170
# remove from autodraw lists
171171
toDrawDepths.pop(toDraw.index(self)) # remove from depths
172172
toDraw.remove(self) # remove from draw list
173+
# Remove from editable list (if present)
174+
for c in self.win._editableChildren:
175+
if c() == self:
176+
self.win._editableChildren.remove(c)
173177
self.status = STOPPED
174178

175179
def setAutoDraw(self, value, log=None):

0 commit comments

Comments
 (0)