Skip to content
Browse files
BF Get textstim_vs_textbox demo running again
As reported by @alexholcombe here: this demo had stopped working. Seems to be resolved by explicitly importing the textbox class. 
Perhaps there is a cleaner way to fix this?
  • Loading branch information
m-macaskill committed Mar 7, 2017
1 parent 5029631 commit b2913c12476cd9ff703134c1703c9930737fad4d
Showing with 3 additions and 2 deletions.
  1. +3 −2 psychopy/demos/coder/stimuli/textBoxStim/
@@ -19,6 +19,7 @@
import string
import random
from psychopy import visual, core, event
from psychopy.visual import textbox
from psychopy.iohub.util import NumPyRingBuffer
import as gl

@@ -81,7 +82,7 @@ def updateStimText(stim,text=None):

# Find a font that is available on the system.
fm = textbox.getFontManager()
prefered_fonts=[fn for fn,fs in available_font_names if fn in [
'Courier New',
@@ -218,4 +219,4 @@ def updateStimText(stim,text=None):
print '---------------------------------------'


0 comments on commit b2913c1

Please sign in to comment.