Returns a 3D numpy array containing position information for each text grid cell in the TextBox.ĭetails ¶ class psychopy.visual. TextBox.getGlyphPositionForTextIndex(char_index)įor the provided char_index, which is the index of one character in Return the additional spacing being applied between rows of text. Returns the stroke width range supported by the graphics card being used. Return the text that fits within the TextBox and therefore is actually seen. Return the width,height of the TextBox, using the unit type being used by the stimulus. TextBox also provides the following read-only functions: Specify if changes to textBox attribute values should be logged automatically by PsychoPy.ĭraws the TextBox to the back buffer of the graphics card. Sets the TextBox transparency level to use for color related attributes of the Textbox. Specify whether interpolation should be enabled for the TextBox when it is drawn. ![]() Set the stroke width (in pixels) to use for the text grid character bounding boxes. Set the color used when drawing text grid lines. Set the fill color used to fill the rectangular area of the TextBox stim. Set the color to use for the border of the textBox. Set the color to use when drawing text glyphs within the TextBox. Specify how text within the TextBox should be aligned vertically. ![]() Specify how text within the TextBox should be aligned horizontally. Specify how the vertical (y) component of the TextBox position is to be interpreted. Specify how the horizontal (x) component of the TextBox position is to be interpreted. Set the (x,y) position of the TextBox on the Monitor. Set the text to be displayed within the Textbox. The following `set_()` attributes all have equivalent `get_()` Similar to the visual.TextStim component, TextBox can be used to display text within a psychopy window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |