Package VisionEgg :: Module WrappedText :: Class WrappedText |
[frames] | no frames]

# Class WrappedText

source code

             object --+
                      |
    ClassWithParameters --+
                          |
              Core.Stimulus --+
                              |
                             WrappedText

    Multi-line text stimulus. No fancy formatting, but line breaks ('\n')
    are preserved, and text is wrapped to fit within the stimulus
    boundaries.

Instance Methods
__init__(self, **kw) Initialize the object, perform the initial line-splitting | source code
draw(self) Draw the lines of text on the screen | source code
Inherited from `ClassWithParameters`: `__getstate__`, `__setstate__`, `get_specified_type`, `is_constant_parameter`, `set`, `verify_parameters` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables
| parameters_and_defaults = `{'on':(True, ve_types.Boolean), 'pos`...``
| constant_parameters_and_defaults = `{'font_name':(None, ve_type`...``
Inherited from `ClassWithParameters`: `__safe_for_unpickling__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, **kw) (Constructor) | source code
    Initialize the object, perform the initial line-splitting
Overrides: Core.Stimulus.__init__

### draw(self) | source code
    Draw the lines of text on the screen
Overrides: Core.Stimulus.draw

Class Variable Details

  ### parameters_and_defaults Value:
      {'on':(True, ve_types.Boolean), 'position':((0.0, 0.0), ve_types.AnyOf
      (ve_types.Sequence2(ve_types.Real), ve_types.Sequence3(ve_types.Real),
       ve_types.Sequence4(ve_types.Real))), 'size':(None, ve_types.Sequence2
      (ve_types.Real), """Defaults to the size of the screen."""), 'text':('
      hello', ve_types.AnyOf(ve_types.String, ve_types.Unicode)), 'color':((
      1.0, 1.0, 1.0), ve_types.AnyOf(ve_types.Sequence3(ve_types.Real), ve_t
      ypes.Sequence4(ve_types.Real)))}

  ### constant_parameters_and_defaults Value:
      {'font_name':(None, ve_types.AnyOf(ve_types.String, ve_types.Unicode),
       "Name of font to use. If None, use the default font"), 'font_size':(3
      0, ve_types.UnsignedInteger)}