Skip to content

Commit

Permalink
BF: Disable the Form aperture on creation, enable only on draw
Browse files Browse the repository at this point in the history
This fix stops the aperture from being drawn when the Form is created.
This was causing the aperture to persist over all routines, until the
Form was actually drawn, where the aperture could be disabled.
  • Loading branch information
dvbridges authored and peircej committed Oct 7, 2019
1 parent 885d630 commit 9daeba9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions psychopy/visual/form.py
Expand Up @@ -596,13 +596,15 @@ def _setAperture(self):
psychopy.visual.Aperture
The aperture setting viewable area for forms
"""
return psychopy.visual.Aperture(win=self.win,
name='aperture',
units=self.units,
shape='square',
size=self.size,
pos=(0, 0),
autoLog=False)
aperture = psychopy.visual.Aperture(win=self.win,
name='aperture',
units=self.units,
shape='square',
size=self.size,
pos=(0, 0),
autoLog=False)
aperture.disable() # Disable on creation. Only enable on draw.
return aperture

def _getScrollOffset(self):
"""Calculate offset position of items in relation to markerPos
Expand Down

0 comments on commit 9daeba9

Please sign in to comment.