Skip to content

Commit

Permalink
Merge branch 'release' of https://github.com/psychopy/psychopy into r…
Browse files Browse the repository at this point in the history
…elease
  • Loading branch information
peircej committed Apr 26, 2023
2 parents 90b28e4 + edc1f22 commit 384eb86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions psychopy/app/_psychopyApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,10 +1006,10 @@ def quit(self, event=None):
for frame in self.getAllFrames():
try:
frame.closeFrame(event=event, checkSave=False)
# must do this before destroying the frame?
self.prefs.saveAppData()
except Exception:
pass # we don't care if this fails - we're quitting anyway
# must do this before destroying the frame?
self.prefs.saveAppData()
#self.Destroy()

# Reset streams back to default
Expand Down
9 changes: 7 additions & 2 deletions psychopy/experiment/components/polygon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,14 @@ def writeInitCodeJS(self, buff):
code = ("{name} = new visual.ShapeStim ({{\n"
" win: psychoJS.window, name: '{name}', {unitsStr}\n"
" vertices: 'arrow', size:{size},\n")
else:
elif self.params['shape'] == 'regular polygon...':
code = ("{name} = new visual.Polygon ({{\n"
" win: psychoJS.window, name: '{name}', {unitsStr}\n"
" edges: {nVertices}, size:{size},\n")
else:
code = ("{name} = visual.ShapeStim({{\n" +
" win: psychoJS.window, name: '{name}', {unitsStr}, \n"
" vertices={vertices}, size={size},\n")

depth = -self.getPosInRoutine()

Expand Down Expand Up @@ -303,5 +307,6 @@ def writeInitCodeJS(self, buff):
opacity=inits['opacity'],
depth=depth,
interpolate=interpolate,
nVertices=inits['nVertices']
nVertices=inits['nVertices'],
vertices=inits['vertices']
))

0 comments on commit 384eb86

Please sign in to comment.