[open] Follow-up on how to increase widget size for questionnaires
Hi,
I would like to follow up on the previous thread regarding widget size. I am setting up some questionnaires, but the boxes and font sizes need to be much larger. I replaced the checkbox images, but for the rating scale, I still need to modify the font size and background bar. Is there an easy way to add these values to my opensesame script? Are there any more example scripts for different types of questionnaire available?
Thanks for help and suggestions!
Comments
Hi Jasmin,
So I'm guessing you figured out how to replace the
checkboximages from this discussion. And now you would like to change the font size and the size of the rectangle around the checkboxes as well. Is that right?Changing the font is really easy. You can just do that in the general tab of your experiment.
Changing the rectangle around the checkboxes isn't as easy, because it is hard-coded into the theme engine. However, what you could do is hack into the internals of the theme engine, and replace the function that specifies the box size. This is not possible in OpenSesame script, so you'd need to use Python script.
Like this:
This is really a hack! But for now it's the only solution.
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi,
Thanks for your reply, but I am still fiddling around with the questionnaire design...Since I want to use it on the Tablet, do you know where I have to replace the checkbox images on the Tablet?
Thanks!
Hi Jasmin,
Another tricky question. On Android (as you probably found out), you cannot easily replace the images, because they are part of the package. What you can do instead is another hack: You can redirect OpenSesame to a custom file in the file pool. Let's assume that you have two files in the file pool, called
my-unchecked-box.pngandmy-checked-box.png. You can then add the following script to the prepare phase of aninline_scriptat the start of the experiment.Basically, what this does is redirect all lookups of
widgets/gray/box-unchecked.pngandwidgets/gray/box-checked.pngto your custom images in the file pool.Does that clear things up?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Great, thanks for the workaround!
I have two remaining questions regarding forms:
Thanks for your help!
Hi Jasmin,
If you want to control the flow of the experiment in more detail, for example allowing 'back' responses or repeating items until some criterion is met, you need to that programmatically. Lotje provided a pretty elaborate explanation of this here:
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!