[solved] Change backgrounds colors and fonts in widgets
First of all thanks a lot guys for this amazing tool. I was a matlab user and at the moment I am trying to switch to Python. Looking for some package similar to Psychtoolbox I found OpenSesame and I am really amazed how simple and flexible is it. Thanks Again to the developers!
Now my question. As a newbie probably i am asking easy to solve question but so far I cant find a solution:
I need to set up some variables at the beginning of my experiment (screen size, distance to screen and so on) I am using the widgets tool for this in a inline script, like in the following example:
from libopensesame import widgets form = widgets.form(self.experiment, cols=[1,1,1], rows=[1,1,1,1,1,1,1], margins=(200,200,50,100), spacing=50) question_text = "Before starting this experiment please fill some variables:" question_label = widgets.label(form, text=question_text) input1 = widgets.text_input(form, return_accepts=True, var='Length_cm') input2 = widgets.text_input(form, return_accepts=True, var='Length_px') input3 = widgets.text_input(form, return_accepts=True, var='Width_px') input4 = widgets.text_input(form, return_accepts=True, var='Distance_cm') input5 = widgets.text_input(form, return_accepts=True, var='Size_dg') question1 = widgets.label(form, text='Length Screen (in cm)', center=False) question2 = widgets.label(form, text='Length Screen (in Pixels)', center=False) question3 = widgets.label(form, text='Width Screen (in Pixels)', center=False) question4 = widgets.label(form, text='Distance to Screen (in cm)', center=False) question5 = widgets.label(form, text='Size of Stimulus (in deg)', center=False) form.set_widget(question_label, (0,0), colspan=3) form.set_widget(input1, (0,1)) form.set_widget(input2, (0,2)) form.set_widget(input3, (0,3)) form.set_widget(input4, (0,4)) form.set_widget(input5, (0,5)) form.set_widget(question1, (1,1)) form.set_widget(question2, (1,2)) form.set_widget(question3, (1,3)) form.set_widget(question4, (1,4)) form.set_widget(question5, (1,5))
Is there any way to change the fonts, size and colors of the sentences and the boxes colors in the code?
If it is possible: How could I do it?
Thanks a lot in advance!
And thanks again for this amazing tool!