forms on Android
Hello,
I'm trying do build an experiment running on an Android tablet.
Everything run fine, except my first "personal information form" that is very very slow on the tablet.
Can you do something for me?? hope you can help
here is my code:
from libopensesame import widgets
form = widgets.form(self.experiment, cols=[1,1], rows=[1,1,1,1,1,1,1,1])
title = widgets.label(form,
text='Informations personnelles')
question1 = widgets.label(form, text='Classe', center=False)
question2 = widgets.label(form, text='Genre', center=False)
question3 = widgets.label(form, text='Latéralisation', center=False)
question4 = widgets.label(form, text='Vue', center=False)
question5 = widgets.label(form, text='amblyopie', center=False)
question6 = widgets.label(form, text='vrai jumeau dans la classe', center=False)
ratingScale1 = widgets.rating_scale(form, var='question1',
nodes=['4eme', "3eme", '2nd','1ere','Terminale'])
ratingScale2 = widgets.rating_scale(form, var='question2',
nodes=['Homme', "Femme"])
ratingScale3 = widgets.rating_scale(form, var='question3',
nodes=['Droitier', "Gaucher"])
ratingScale4 = widgets.rating_scale(form, var='question4',
nodes=['Bonne', "Corrigé",'Faible'])
ratingScale5 = widgets.rating_scale(form, var='question5',
nodes=['Oui', "Non"])
ratingScale6 = widgets.rating_scale(form, var='question6',
nodes=['Oui', "Non"])
nextButton = widgets.button(form, text='Next')
form.set_widget(title, (0,0), colspan=2)
form.set_widget(question1, (0,1))
form.set_widget(question2, (0,2))
form.set_widget(question3, (0,3))
form.set_widget(question4, (0,4))
form.set_widget(question5, (0,5))
form.set_widget(question6, (0,6))
form.set_widget(ratingScale1, (1,1))
form.set_widget(ratingScale2, (1,2))
form.set_widget(ratingScale3, (1,3))
form.set_widget(ratingScale4, (1,4))
form.set_widget(ratingScale5, (1,5))
form.set_widget(ratingScale6, (1,6))
form.set_widget(nextButton, (0,7), colspan=2)
resp=form._exec()
exp.set('classe',ratingScale1.value)
exp.set('genre',ratingScale2.value)
exp.set('lat',ratingScale3.value)
exp.set('vue',ratingScale4.value)
exp.set('amblyopie',ratingScale5.value)
exp.set('jumeau',ratingScale6.value)