traitsui.editors.range_editor module¶
Defines the range editor factory for all traits user interface toolkits.
-
class
traitsui.editors.range_editor.
RangeEditor
(*args, **traits)[source]¶ Bases:
traitsui.editor_factory.EditorFactory
Editor factory for range editors.
-
auto_set
= Bool(True)¶ Is user input set on every keystroke?
-
cols
= Range(1, 20)¶ Number of columns when displayed as an enumeration
-
custom_editor
(ui, object, name, description, parent)[source]¶ Generates an editor using the “custom” style. Overridden to set the values of the _low_value, _high_value and is_float traits.
-
enter_set
= Bool(False)¶ Is user input set when the Enter key is pressed?
-
evaluate
= Any()¶ Function to evaluate floats/ints when they are assigned to an object trait
-
evaluate_name
= Str()¶ The object trait containing the function used to evaluate floats/ints
-
format
= Property(Str, observe='format_str')¶ Deprecated: Please use
format_str
instead. See enthought/traitsui#1704 Formatting string used to format value and labels.
-
format_str
= Str("%s")¶ Formatting string used to format value and labels
-
high
= Property()¶ High end of range
-
high_label
= Str()¶ Label for the high end of the range
-
high_name
= Str()¶ The name of an [object.]trait that defines the high value for the range
-
init
(handler=None)[source]¶ Performs any initialization needed after all constructor traits have been set.
-
is_float
= Bool(Undefined)¶ Is the range for floating pointer numbers (vs. integers)?
-
label_width
= Int()¶ FIXME: This is supported only in the wx backend so far. The width of the low and high labels
-
low
= Property()¶ Low end of range
-
low_label
= Str()¶ Label for the low end of the range
-
low_name
= Str()¶ The name of an [object.]trait that defines the low value for the range
-
mode
= Enum( …¶ Display mode to use
-
-
traitsui.editors.range_editor.
ToolkitEditorFactory
¶