psychopy.org | Reference | Downloads | Github

Please surround python code with backticks

When you include python code on this forum please put triple “backticks” like this ``` on the line before and the line after your code.

If you’ve done it correctly then your code will appear in a grey box with correct indentation like this (check the preview of your post on the right hand side before posting it) and other people will be better able to work out what might be right/wrong with your code.

if myVal==True:
    break

If you’ve already posted something that didn’t follow this rule then please edit that post and add these backticks.

thanks

1 Like
Pause and resume
Counting number of trials in stair handler
VPixx Viewpixx 3d - EEG triggers
.overlaps() method fails with rectangles
Conditional Branching not working for RAT experiment
Setting opacity for fade effect
Gradient Staircase experiment: narrowing to non-zero angles
Mouse Click as Event trigger in Psychopy 1.90.3
How to present subset of all images randomly
Iohub_server_response_error
event.getKeys issues
Stops moving when two stimuli meets
Opposite colors for my stimuli
Crashing with shuffle images
Calling win.flip() at every frame when using static stimuli: pros and cons
Signaling when an image is clicked
Rounding mouse click location
Use key responses as triggers
RT and key response not recording in data
Jitter duration not recording
Self paced reading - space doesn't always move window
Ending a routine 0.5 seconds after key press
Self Paced Reading Task with questions
Importerror: cannot import name genFilenameDelimiter
Need help in getting feedback based on rating scale response from previous rountine. Partial Success
Multiple Rating scale
Parallel Port Trigger Issues
Feedback after trial block
How can I have the total experiment time?
Save large number of frames to tiff image stack
"The truth value of an array with more than one element is ambiguous" while using ".POS"
Post trial question after key is selected
Code working in some routines, but not others
How to insert a countdown for the stimuli?
Reaction Time without Keyboard Component
Something wrong with code component or textbox feature in 2020.2.10
Response triggers to EEG
Wait 5 seconds before feedback
Feedback Routine in 2back experiment
How to Reverse Score output
Memory Leak Issue - troubleshooting - 14 questions
How to simultaneously run two routines?
If statement not working
Screenshot using getmovieframe how to get shot of both front and back screens
Conditional Branching for Picture Naming Trials
Providing 'No Response' Feedback to Participants
Routine Won't Stay Up for Duration of Specified Time
Speech Recognition
Random inter-stimulus intervals
Randomly Select from Multiple Conditions files
Need some help coding
Setting the Gamma Ramp Manually
When i use wait.keys in a block,it needs to press the keyboard twice to move on
Feedback routine only provides negative feedback
Problem with specifying allowed keys via script (or variable in xlsx file)
Force end of routine with two key presses, within time limit
If condition not working with input from keyboard component
Providing feedback before routine has ended
Loop sometimes works but not consistent
Creating an n-back task in builder view
Record responses during pauses (blank screens)
Lose data file(.csv) if I press esc. to terminate the program
Wait for joystick response in psychopy
Text input experiment interpretation
Importing Images from a File of Images
Clicking on Image Causes Response
Creating barriers in a grid
Problem with IoHub datastore while using ioHubExperimentRuntime class
Sending Message for EyeTracker using Pylinkwrapper
Blank screen in Psychopy!
Problem configuring a visual angle
Scoring responses and showing total points at the end
Task-Switching in Builder view
Displaying participant responses
Giving feedback based on the number of trials inside the loop
Mouse click on shape
Eyelink II , exception in thread Thread-2
Psychopy can’t quit
Advice on using moviestim3
Wrong mouse location with Psychopy 3.06 with MacOS Retina display
Coder: UnicodeEncodeError
Conditional stimulus timing
Randomizing loops to two monitors
Conditional loop based on randomized correct key presses
Stroop task with counterbalanced block
Parallel port for TMS pulse
Adaptive Staircase Question
Movie doesn't play
Javascript code not working on Pavlovia
Multiple randomised images to click at each frame
Background music is not play
Loop only running 1x instead of 8x before ending routine
How to temporarily hide text responses
Select pictures pseudorandomly
Drag & drop end trial subject to specific condition
Drag and drop into correct box
Writing contains(mouse) to output
Trail Making Task using colours
Input text continues from routines in loop
Error message --> AttributeError: 'list' object has no attribute 'draw'
Fixation Cross Problem
Stroop test error when adding a language
Send event marker through Labjack U3-LV to Biopac

thank you Jon, i will do this

Thanks! I’ll do that!