pushbase.action_with_options_component¶
Classes¶
class ActionWithSettingsComponent(Component)¶
Bases: Component
Attributes¶
SETTINGS_DELAY
__init__(self, *a, **k)¶
show_settings(self)¶
hide_settings(self)¶
trigger_action(self)¶
post_trigger_action(self)¶
_do_show_settings(self)¶
_do_hide_settings(self)¶
action_button(self, button)¶
action_button(self, button)¶
class OptionsComponent(Component)¶
Bases: Component
Attributes¶
unselected_color = 'Option.Unselected'selected_color = 'Option.Selected'_selected_option = Noneselect_buttonsoption_namesselected_optionlabels
__init__(self, num_options, num_labels, num_display_segments, *a, **k)¶
_get_option_names(self)¶
_set_option_names(self, value)¶
_get_selected_option(self)¶
_set_selected_option(self, selected_option)¶
set_display_line(self, line)¶
set_label_display_line(self, line)¶
_get_labels(self)¶
_set_labels(self, labels)¶
set_blank_display_line1(self, line)¶
set_blank_display_line2(self, line)¶
set_state_buttons(self, buttons)¶
_on_select_value(self, button)¶
_update_select_buttons(self)¶
_update_data_sources(self)¶
class ActionWithOptionsComponent(ActionWithSettingsComponent)¶
Bases: ActionWithSettingsComponent
__init__(self, num_options, *a, **k)¶
options(self)¶
show_settings(self)¶
hide_settings(self)¶
class ToggleWithOptionsComponent(ActionWithOptionsComponent)¶
Bases: ActionWithOptionsComponent
Attributes¶
_is_active = False_just_activated = Falseis_active