Skip to content

Commit

Permalink
builder: don't do win.flip() for a routine that has ended or you get …
Browse files Browse the repository at this point in the history
…a blip in presentation
  • Loading branch information
peircej committed Jul 27, 2011
1 parent db61ef1 commit 052e18e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psychopy/app/builder/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,8 @@ def writeMainCode(self,buff):
buff.writeIndentedLines('\n#check for quit (the [Esc] key)\n')
buff.writeIndented('if event.getKeys(["escape"]): core.quit()\n')
buff.writeIndented('#refresh the screen\n')
buff.writeIndented('win.flip()\n')
buff.writeIndented("if continueRoutine:#don't flip if this routine is over or we'll get a blank screen\n")
buff.writeIndented(' win.flip()\n')

#that's done decrement indent to end loop
buff.setIndentLevel(-1,True)
Expand Down

0 comments on commit 052e18e

Please sign in to comment.