The height of the characters in the given units of the stimulus/window. Should text be laid out from left to right (LTR), from right to left (RTL), or laid out like Arabic script? letter height integer or float What font should the text be set in? Can be a font installed on your computer, saved to the “fonts” folder in your PsychoPy ® user folder or (if you are connected to the internet), a font from Google Fonts. What point on the button should be anchored to its position? For example, if the position of the button is (0, 0), should the middle of the button be in the middle of the screen, should its top left corner be in the middle of the screen, etc.? Formatting ¶ How much space should there be between the box edge and the text? anchor center, center-left, center-right, top-left, top-center, top-right, bottom-left, bottom-center, bottom-right See Units for the window and stimuli padding float Size of the stimulus on screen spatial units deg, cm, pix, norm, or inherit from window The position of the centre of the stimulus, in the units specified by the stimulus or window size (width, height) The orientation of the stimulus in degrees. How should the stimulus be laid out? Padding, margins, size, position, etc. Vary the transparency, from 0.0 = invisible to 1.0 = opaque Layout ¶ How wide should the line be? Width is specified in chosen spatial units, see Units for the window and stimuli opacity : See Color spaces border width int | float See Color spaces color space rgb, dkl, lms, hsv How should the stimulus look? Colour, borders, etc. Whether the callback function to only run once when the button is inititally clicked, or whether it should run continuously each frame while the button is pressed. button text stringĬustom code to run when the button is pressed run once per click bool If this box is checked then the Routine will end as soon as one of the mouse buttons is pressed. See Defining the onset/duration of components for details. The duration for which the stimulus is presented. The time that the stimulus should first appear. ![]() The name should contain only letters, numbers and underscores (no punctuation marks or spaces). name stringĮverything in a PsychoPy ® experiment needs a unique name. a textbox component (to display as a “clickable” thing), a mouse component (to click the textbox) and a code component (not essential, but for example to check if a clicked response was correct or incorrect). The nice thing about the button component is that you can allow mouse/touch responses with a single component instead of needing 3 separate components i.e. ![]() ' on line number 7 of the 'Each Frame' tab.This component allows you to show a static textbox which ends the routine and/or triggers a “callback” (some custom code) when pressed. If mouseButton.isPressedIn(clickable) and fills = 'darkgrey':Įlif mouseButton.isPressedIn(clickable) and fills = 'blue':īut I receive this error: Alert 4205:Python Syntax Error in 'Each Frame' tab. If it has not changed, change the colour of the square # If mouse pressed in square, match current square to square stored in fills list I hence tried adapting my code as such: if mouseButton.getPressed() = 0:įills = įor clickable, index in enumerate() ![]() I’ve got it working with the following code component in the ‘Each Frame’ tab, to change squares from white-black and black-white: I want participants to be able to change their response if they make a mistake, and when they’re happy with it continue to the next trial. I’ve created a demo experiment where participants are required to memorise a pattern of black and white squares, and then click on the squares in a blank grid to reproduce the pattern. Stimuli changes colour when clicked but 'flickering' and not responding immediately Builder
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |