A class implementing a text input box.
Methods
Create a text input box.
Parameters : | message : str, optional
position : (int, int), optional
ascii_filter : list, optional
message_text_size : int, optional
message_colour : (int, int, int), optional
message_font : str, optional
message_bold : bool, optional
message_italic : bool, optional
user_text_size : int, optional
user_text_font : str, optional
user_text_colour : (int, int ,int), optional
user_text_bold : bool, optional
background_colour : (int, int, int), optional frame_colour : (int, int, int)
gap : int, optional
screen : io.Screen, optional
background_stimulus : expyriment stimulus, optional
|
---|
Notes
This stimulus is not optimized for timing accurate presentation!
Getter for filter
Getter for background_colour
Getter for background_stimulus
Getter for frame_colour
Getter for gap
Get input from user.
Parameters : | default_input : str, optional
|
---|
Notes
This displays and updates the input box automatically. Pressing ENTER returns the user input. Pressing ESC quits, returning an empty string.
Getter for length
Getter for logging.
Getter for message
Getter for message_bold
Getter for message_colour
Getter for message_font
Getter for message_italic
Getter for message_text_size
Getter for position
Getter for screen
Set logging of this object on or off
Parameters : | onoff : bool
|
---|
Notes
See also design.experiment.set_log_level fur further information about event logging.
Getter for user_text_bold
Getter for user_text_colour
Getter for user_text_font
Getter for user_text_size