Adding Image to a form
So, I suspect that I am missing something obvious. I am trying to add an image to a form and just can't do it. At this point, I am just trying to get an image to display in the form with a next button at the end. My code in the form_base is:
set spacing 10 set rows "1;1" set only_render no set margins "50;50;50;50" set description "A generic form plug-in" set cols 1 set _theme gray widget 0 0 1 1 image path="purplel_202.png" widget 0 1 1 1 button text=Next
The image is in the file pool. However, openseseame keeps giving me the error:
TypeError: 'module' object is not callable
Any suggestions for debugging? If I remove the image line, I can get a next button to appear, so something is going wrong with calling in the image file.
Comments
Hi @K_Gasper ,
Thanks for reporting this. You're not doing anything wrong, but this appears to a bug that was introduced in OpenSesame 4.0. It should be fixed soon in a maintenance release, which will appear through the automatic updater. In the meanwhile, as a workaround you could consider implementing the form in Python:
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!