Radio is a widget that allows for one or more options to be displayed and have the user choose only one of them.
A radio object contains an indicator, an optional Label and an optional icon object. While it’s possible to have a group of only one radio they, are normally used in groups of two or more.
Radio objects are grouped in a slightly different, compared to other UI toolkits. There is no separate group name/id to remember or manage. The members represent the group, there are the group. To make a group, use Radio.group_add() and pass existing radio object and the new radio object.
The radio object(s) will select from one of a set of integer values, so any value they are configuring needs to be mapped to a set of integers. To configure what value that radio object represents, use state_value to set the integer it represents. The value of the whole group (which one is currently selected) is represented by the property value on any group member. For convenience the radio objects are also able to directly set an integer(int) to the value that is selected.
the radio objects within the group of radio objects that work together.
focused - When the radio has received focus. (since 1.8)
unfocused - When the radio has lost focus. (since 1.8)
Bases: efl.elementary.__init__.LayoutClass
This is the class that actually implements the widget.
Parameters: |
|
---|
This is called whenever the user changes the state of one of the radio objects within the group of radio objects that work together.
When the radio has received focus.
New in version 1.8.
When the radio has lost focus.
New in version 1.8.
Add this radio to a group of other radio objects
Radio objects work in groups. Each member should have a different integer value assigned. In order to have them work as a group, they need to know about each other. This adds the given radio object to the group of which the group object indicated is a member.
Parameters: | group (Radio) – Any object whose group the object is to join. |
---|
The integer value that this radio object represents
Type: | int |
---|
The value of the radio group.
This reflects the value of the radio group and will also set the value if pointed to, to the value supplied, but will not call any callbacks.
Type: | int |
---|
value changes.
This sets a pointer to a integer, that, in addition to the radio objects state will also be modified directly. To stop setting the object pointed to simply use None as the valuep argument. If valuep is not None, then when this is called, the radio objects state will also be modified to reflect the value of the integer valuep points to, just like calling value.
param valuep: | Pointer to the integer to modify |
---|---|
type valuep: | int |
Deprecated since version 1.8: Don’t use this, only works in C.