Skip to content
Permalink
Browse files

BF: Disable the Form aperture on creation, enable only on draw

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 Sep 13, 2019
1 parent 885d630 commit 9daeba94d2fae8fe2663a953aa1f5242bb5d2f62
Showing with 9 additions and 7 deletions.
  1. +9 −7 psychopy/visual/form.py
@@ -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

0 comments on commit 9daeba9

Please sign in to comment.
You can’t perform that action at this time.