RB.Rating
- Subclasses:
None
Class Details
-
class RB.Rating(**kwargs)
- Bases:
Gtk.Widget
- Abstract:
No
- Structure:
RB.RatingClass
This widget displays a rating (0-5 stars) and allows the user to
alter the rating by clicking.
-
classmethod new()
- Returns:
a new RB.Rating
widget.
- Return type:
RB.Rating
Creates a new rating widget
-
do_adjust_rating(adjust) virtual
- Parameters:
adjust (float
) –
- Return type:
bool
-
do_rated(score) virtual
- Parameters:
score (float
) –
-
do_set_rating(score) virtual
- Parameters:
score (float
) –
- Return type:
bool
Signal Details
-
RB.Rating.signals.adjust_rating(rating, adjust)
- Signal Name:
adjust-rating
- Flags:
RUN_LAST
, ACTION
- Parameters:
-
Action signal used to make a relative adjustment to the
rating.
-
RB.Rating.signals.rated(rating, score)
- Signal Name:
rated
- Flags:
RUN_LAST
- Parameters:
-
Emitted when the user changes the rating.
-
RB.Rating.signals.set_rating(rating, score)
- Signal Name:
set-rating
- Flags:
RUN_LAST
, ACTION
- Parameters:
-
Action signal used to change the rating.
Property Details
-
RB.Rating.props.rating
- Name:
rating
- Type:
float
- Default Value:
2.5
- Flags:
READABLE
, WRITABLE
The rating displayed in the widget, as a floating point value
between 0.0 and 5.0.