open-cogsci / OpenSesame

Graphical experiment builder for the social sciences
http://osdoc.cogsci.nl/
GNU General Public License v3.0
236 stars 112 forks source link

Checkbox being checked is not registered if text is empty #717

Closed PierreYvesH closed 4 years ago

PierreYvesH commented 4 years ago

Hi, so if I create a form and add a checkbox chkbx = widgets.checkbox( form, "", center=True, var=var) Then when I check it while running, its value never changes because the variable l_val is empty. An easy fix would be to append widget.checked instead of widget.text line 218.

smathot commented 4 years ago

Thanks for flagging this, that's really useful!