Inline_script: Text input & Ok button
I've been trying to figure out how you can make a form or inline script with a text_input and an OK button. However, every time I try the OK button does not work. It seems like the text_input field is selected: when I enter some text and press Enter, I can subsequently use the OK button. But when I just type some text and press the OK button, nothing happens. I've been reading through previous topics, but can't figure out a way that would work.
Here's my code so far:
from libopensesame import widgets
form = widgets.form(exp)
form = widgets.form(exp, cols=[1,1,1,1], rows=[1,1,1,1,1], margins=(50,50,50,50), spacing=10)
text_input = widgets.text_input(form, var='naam', return_accepts=False, stub=u"Typ hier")
nextButton = widgets.button(form, text='Next', var="buttonpress")
form.set_widget(text_input, (0,1), colspan=4)
Thank you in advance!!