Skip to content

Commit

Permalink
BF: Editable textboxes were still autodrawing when clicked in subsequ…
Browse files Browse the repository at this point in the history
…ent routines
  • Loading branch information
Todd authored and Todd committed Sep 28, 2020
1 parent 17a29cf commit 8253f06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions psychopy/visual/basevisual.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ def autoDraw(self, value):
# remove from autodraw lists
toDrawDepths.pop(toDraw.index(self)) # remove from depths
toDraw.remove(self) # remove from draw list
# Remove from editable list (if present)
for c in self.win._editableChildren:
if c() == self:
self.win._editableChildren.remove(c)
self.status = STOPPED

def setAutoDraw(self, value, log=None):
Expand Down

0 comments on commit 8253f06

Please sign in to comment.