Skip to content

Commit 9daeba9

Browse files
dvbridgespeircej
authored andcommitted
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.
1 parent 885d630 commit 9daeba9

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

psychopy/visual/form.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -596,13 +596,15 @@ def _setAperture(self):
596596
psychopy.visual.Aperture
597597
The aperture setting viewable area for forms
598598
"""
599-
return psychopy.visual.Aperture(win=self.win,
600-
name='aperture',
601-
units=self.units,
602-
shape='square',
603-
size=self.size,
604-
pos=(0, 0),
605-
autoLog=False)
599+
aperture = psychopy.visual.Aperture(win=self.win,
600+
name='aperture',
601+
units=self.units,
602+
shape='square',
603+
size=self.size,
604+
pos=(0, 0),
605+
autoLog=False)
606+
aperture.disable() # Disable on creation. Only enable on draw.
607+
return aperture
606608

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

0 commit comments

Comments
 (0)