Yes, it looks like the documentation for that class is not being automatically collated into the online docs.
Below is what is contained in the source code, and you should also check out the textbox demos under the Coder Demos menu.
class TextBox(object):
"""
Similar to the visual.TextStim component, TextBox can be used to display
text within a psychopy window. TextBox and TextStim each have different
strengths and weaknesses. You should select the most appropriate text
component type based on how it will be used within the experiment.
NOTE: As of PsychoPy 1.79, TextBox should be considered experimental.
The two TextBox demo scripts provided have been tested on
all PsychoPy supported OS's and run without exceptions. However there are
very likely bugs in the existing TextBox code and the TextBox API will
be further enhanced and improved (i.e. changed) over the next couple months.
TextBox Features:
~~~~~~~~~~~~~~~~~
* Text character placement is very well defined, useful when the exact
positioning of each letter needs to be known.
* The text string that is displayed can be changed ( setText() ) and
drawn ( win.draw() ) **very** quickly. See the TextBox vs. TextStim
comparison table for details.
* Built-in font manager; providing easy access to the font family names
and styles that are available on the computer being used.
* TextBox is a composite stimulus type, with the following graphical
elements:
- TextBox Border / Outline
- TextBox Fill Area
- Text Grid Cell Lines
- Text Glyphs
Attributes for each of the TextBox graphical elements can be changed
to control many aspects of how the TextBox is displayed.
* When using 'rgb' or 'rgb255' color spaces, colors can be specified as
a list/tuple of 3 elements (red, green, blue), or with four elements
(reg, green, blue, alpha) which allows different elements of the
TextBox to use different opacity settings if desired. For colors that
include the alpha channel value, it will be applied instead of the
opacity setting of the TextBox, effectively overriding the stimulus
defined opacity for that part of the textbox graphics. Colors that
do not include an alpha channel use the opacity setting as normal.
* Text Line Spacing can be controlled.
Textbox Limitations:
~~~~~~~~~~~~~~~~~~~~
* Only Monospace Fonts are supported.
* TextBox component is not a completely **standard** psychopy visual
stim and has the following functional difference:
- TextBox attributes are never accessed directly; get* and set*
methods are always used (this will be changed to use class
properies in the future).
- Setting an attribute of a TextBox only supports value replacement,
( textbox.setFontColor([1.0,1.0,1.0]) ) and does not support
specifying operators.
* Some key word arguments supported by other stimulus types in general,
or by TextStim itself, are not supported by TextBox. See the TextBox
class definition for the arguments that are supported.
* When a new font, style, and size are used it takes about 1 second to
load and process the font. This is a one time delay for a given
font name, style, and size. After first being loaded,
the same font style can be used or re-applied to multiple TextBox
components with no significant delay.
* Auto logging or auto drawing is not currently supported.
TextStim and TextBox Comparison
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
============================ ============= ===========
Feature TextBox TextStim
============================ ============= ===========
Change text + redraw time^ 1.513 msec 28.537 msec
No change + redraw time^ 0.240 msec 0.931 msec
Initial Creation time^ 0.927 msec 0.194 msec
MonoSpace Font Support Yes Yes
Non MonoSpace Font Support No Yes
Adjustable Line Spacing Yes No
Precise Text Pos. Info Yes No
Auto logging Support No Yes
Rotation Support No Yes
Word Wrapping Support Yes Yes
============================ ============= ===========
^ Times are in msec.usec format. Tested using the textstim_vs_textbox.py
demo script provided with the PsychoPy distribution. Results are
dependent on text length, video card, and OS. Displayed results are
based on 120 character string with an average of 24 words. Test computer
used Windows 7 64 bit, PsychoPy 1.79, with a i7 3.4 Ghz CPU, 8 GB RAM,
and NVIDIA 480 GTX 2GB graphics card.
Example TextBox Usage:
~~~~~~~~~~~~~~~~~~~~~~~
from psychopy import visual
win=visual.Window((....)
# A Textbox stim that will look similar to a TextStim component
#
textstimlike=visual.TextBox(
window=win,
text="This textbox looks most like a textstim.",
font_size=18,
font_color=[-1,-1,1],
color_space='rgb',
size=(1.8,.1),
pos=(0.0,.5),
units='norm'
)
# A Textbox stim that uses more of the supported graphical features
#
textboxloaded=visual.TextBox(
window=win
text='TextBox showing all supported graphical elements',
font_size=32,
font_color=[1,1,1],
border_color=[-1,-1,1], # draw a blue border around stim
border_stroke_width=4, # border width of 4 pix.
background_color=[-1,-1,-1], # fill the stim background
grid_color=[1,-1,-1,0.5], # draw a red line around each
# possible letter area,
# 50% transparent
grid_stroke_width=1, # with a width of 1 pix
textgrid_shape=[20,2], # specify area of text box
# by the number of cols x
# number of rows of text to support
# instead of by a screen
# units width x height.
pos=(0.0,-.5),
# If the text string length < num rows * num cols in
# textgrid_shape, how should text be justified?
#
grid_horz_justification='center',
grid_vert_justification='center',
)
textstimlike.draw()
textboxloaded.draw()
win.flip()
"""