psychopy.org | Reference | Downloads | Github

Set TextStim as a capital letter?

Dear,

Is there a straightforward way to convert a lower case letter into an upper case letter, analogous to for example .setColor() in the color-domain?

Best,
Koen

Hi @Koen_Rummens, you can call the string methods to do this:

yourTextComponent.text.upper()  # convert to uppercase
yourTextComponent.text.lower()  # convert to lowercase
2 Likes

That works perfectly, thanks a lot.