Rating feedback allow users to rank their experience from 1 to 5 starts.
Basic Example
The following example demonstrate some of the available functionality for read_rating
Custom chars and number of points
The following example demonstrate some of the available functionality for read_rating
Function signature
See in Github
def (label: str, **kwargs):
Positional parameters
label (str)
The label to display to the userKeyword Arguments
initial_value (int)
The initial value to display to the user. Defaults to 0.max (float)
Max value accepted by the input. Defaults to None.char (str)
Which char should be displayed as icon?disabled (bool)
whether the input is disabled. Defaults to False.required (Union[bool, str])
Whether the input is required or not eg. "this field is required". Defaults to True.hint (str)
A tooltip displayed to the user. Defaults to None.end_program (bool)
Whether the program should end after the widget is shown. Defaults to False.full_width (bool)
Whether the input should use full screen width. Defaults to False.button_text (str)
What text to display on the button when the widget is not part of a Page. Defaults to 'Next'.Returns
(float)The value entered by the user