Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

forms on Android

edited May 2016 in OpenSesame

Hello,

I'm trying to 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:
<br /> from libopensesame import widgets<br /> form = widgets.form(self.experiment, cols=[1,1], rows=[1,1,1,1,1,1,1,1])<br /> title = widgets.label(form,<br /> text='Informations personnelles')<br /> question1 = widgets.label(form, text='Classe', center=False)<br /> question2 = widgets.label(form, text='Genre', center=False)<br /> question3 = widgets.label(form, text='Latéralisation', center=False)<br /> question4 = widgets.label(form, text='Vue', center=False)<br /> question5 = widgets.label(form, text='amblyopie', center=False)<br /> question6 = widgets.label(form, text='vrai jumeau dans la classe', center=False)<br /> ratingScale1 = widgets.rating_scale(form, var='question1',<br /> nodes=['4eme', "3eme", '2nd','1ere','Terminale'])<br /> ratingScale2 = widgets.rating_scale(form, var='question2',<br /> nodes=['Homme', "Femme"])<br /> ratingScale3 = widgets.rating_scale(form, var='question3',<br /> nodes=['Droitier', "Gaucher"])<br /> ratingScale4 = widgets.rating_scale(form, var='question4',<br /> nodes=['Bonne', "Corrigé",'Faible'])<br /> ratingScale5 = widgets.rating_scale(form, var='question5',<br /> nodes=['Oui', "Non"])<br /> ratingScale6 = widgets.rating_scale(form, var='question6',<br /> nodes=['Oui', "Non"])<br /> nextButton = widgets.button(form, text='Next')<br /> form.set_widget(title, (0,0), colspan=2)<br /> form.set_widget(question1, (0,1))<br /> form.set_widget(question2, (0,2))<br /> form.set_widget(question3, (0,3))<br /> form.set_widget(question4, (0,4))<br /> form.set_widget(question5, (0,5))<br /> form.set_widget(question6, (0,6))<br /> form.set_widget(ratingScale1, (1,1))<br /> form.set_widget(ratingScale2, (1,2))<br /> form.set_widget(ratingScale3, (1,3))<br /> form.set_widget(ratingScale4, (1,4))<br /> form.set_widget(ratingScale5, (1,5))<br /> form.set_widget(ratingScale6, (1,6))<br /> form.set_widget(nextButton, (0,7), colspan=2)<br /> resp=form._exec()<br /> exp.set('classe',ratingScale1.value)<br /> exp.set('genre',ratingScale2.value)<br /> exp.set('lat',ratingScale3.value)<br /> exp.set('vue',ratingScale4.value)<br /> exp.set('amblyopie',ratingScale5.value)<br /> exp.set('jumeau',ratingScale6.value)<br />

Sign In or Register to comment.