Module albow.widgets.RadioButton
Source code
from albow.widgets.CheckWidget import CheckWidget
from albow.widgets.RadioControl import RadioControl
class RadioButton(RadioControl, CheckWidget):
"""
RadioButton controls are intended to be used in a group to provide a multiple-choice selection. To achieve
this, all the radio buttons in the group should be linked via their ref attributes to the same value, and each
one given a unique setting. The one whose setting matches the current value displays its check mark, and
clicking on a radio button sets the value to that button's setting.
Note that a RadioButton does not have a title; you will need to place a Label beside it if you want one.
The visual appearance of a RadioButton is currently the same as a CheckBox. This may change in a later version.
"""
pass
Classes
class RadioButton (**kwds)
-
RadioButton controls are intended to be used in a group to provide a multiple-choice selection. To achieve this, all the radio buttons in the group should be linked via their ref attributes to the same value, and each one given a unique setting. The one whose setting matches the current value displays its check mark, and clicking on a radio button sets the value to that button's setting.
Note that a RadioButton does not have a title; you will need to place a Label beside it if you want one.
The visual appearance of a RadioButton is currently the same as a CheckBox. This may change in a later version.
Creates a new widget, initially without any parent. If a rect is given, it specifies the new widget's initial s ize and position relative to its parent.
Args
rect
- A PyGame rectangle defining the portion of the parent widget's coordinate system occupied by the
widget. Modifying this rectangle changes the widget's size and position.
**kwds
- Additional attributes specified as key-value pairs
Source code
class RadioButton(RadioControl, CheckWidget): """ RadioButton controls are intended to be used in a group to provide a multiple-choice selection. To achieve this, all the radio buttons in the group should be linked via their ref attributes to the same value, and each one given a unique setting. The one whose setting matches the current value displays its check mark, and clicking on a radio button sets the value to that button's setting. Note that a RadioButton does not have a title; you will need to place a Label beside it if you want one. The visual appearance of a RadioButton is currently the same as a CheckBox. This may change in a later version. """ pass
Ancestors
Inherited members
RadioControl
:CheckWidget
:add
add_anchor
add_centered
anchor
attention_lost
augment_mouse_event
bg_color
bg_image
border_color
border_width
call_handler
call_parent_handler
default_size
defer_drawing
dismiss
draw
draw_over
fg_color
focus
focus_switch
font
get_cursor
get_focus
get_margin_rect
get_root
get_top_widget
get_visible
global_to_local
has_focus
inherited
invalidate
is_gl_container
key_down
key_up
local_to_global
margin
menu_bar
parent
parent_resized
present
rect
relative_mode
remove
remove_anchor
resized
scale_bg
sel_color
set_parent
set_size_for_text
smooth
tab_stop
visible