ComboHelper

class glue.core.data_combo_helper.ComboHelper(state, selection_property)[source]

Bases: glue.core.hub.HubListener

Base class for any combo helper represented by a SelectionCallbackProperty.

This stores the state and selection property and exposes the state, selection and choices properties.

Parameters
stateState

The state to which the selection property belongs

selection_propertySelectionCallbackProperty

The selection property representing the combo.

Attributes Summary

choices

The current valid choices for the combo.

display

The current display function for the combo (the function that relates the Python objects to the display label)

selection

The current selected value.

state

The state to which the selection property belongs.

Attributes Documentation

choices[source]

The current valid choices for the combo.

display[source]

The current display function for the combo (the function that relates the Python objects to the display label)

selection[source]

The current selected value.

state[source]

The state to which the selection property belongs.