![]() ![]() Set all elements of the Slider (labels, ticks, line) to a contrast Parameters:ĭraw the Slider, with all its constituent elements on this frame getHistory ( ) ¶ Handle granularity for the rating _setLabelLocs ( ) ¶Ĭalculates the locations of the line, tickLines and labels fromĬolor of the line/ticks/labels according to the color space. color – Color of the line/ticks/labels according to the color space.Like 0.1 gives a limited fine-grained scale. granularity ( int or float) – The smallest valid increments for the scale.flip ( bool) – By default the labels will be below or left of the line.units ( the units to interpret the pos and size) –.This also controls whether the scale is horizontal or vertical. size ( w, h pair ( tuple, array or list )) – The size for the scale defines the area taken up by the line and.pos ( XY pair ( tuple, array or list )) –. ![]() Of ticks but with some values set to None Uneven distribution you should include a list matching the length If the labels can’t be distributedĪcross the ticks then an error will be raised. If you give 3 labels but 5 tick locations then the end and middle labels ( a list or tuple) – The text to go with each tick (or spaced evenly across the ticks).These determine the locations of the ticks (the first and lastĭetermine the endpoints and the rest are spaced according to ticks ( list or tuple) – A set of values for tick locations.win ( ) – Into which the scale will be rendered.GetRT() to get the decision time, or getHistory() to obtainįor other examples see Coder Demos -> stimuli -> slider.py. You can call the getRating() method anytime to get a rating, noResponse goes False (i.e., there is a response). draw()ĭisplays the rating scale, handles the subject’s mouse or key responses,Īnd updates the display. Method, with customizable appearance and response options. Slider ( win, ticks=(1, 2, 3, 4, 5), labels=None, pos=None, size=None, units=None, flip=False, style='rating', granularity=0, readOnly=False, color='LightGray', font='Helvetica Bold', depth=0, name=None, labelHeight=None, autoDraw=False, autoLog=True ) ¶Ī class for obtaining ratings, e.g., on a 1-to-7 or categorical scale.Ī simpler alternative to RatingScale, to be customised with code ratherĪ RatingScale instance is a re-usable visual object having a draw() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |