enable.enable_traits module¶
Define the base Enable object traits
-
class
enable.enable_traits.
ScrollBarRange
(default_value=<traits.trait_type._NoDefaultSpecifiedType object>, **metadata)[source]¶ Bases:
traits.trait_type.TraitType
Trait that holds a (low, high, page_size, line_size) range tuple.
-
info
()[source]¶ Must return a string describing the type of value accepted by the trait handler.
The string should be a phrase describing the type defined by the TraitHandler subclass, rather than a complete sentence. For example, use the phrase, “a square sprocket” instead of the sentence, “The value must be a square sprocket.” The value returned by info() is combined with other information whenever an error occurs and therefore makes more sense to the user if the result is a phrase. The info() method is similar in purpose and use to the info attribute of a validator function.
Note that the result can include information specific to the particular trait handler instance. If the info() method is not overridden, the default method returns the value of the ‘info_text’ attribute.
-
-
class
enable.enable_traits.
ScrollPosition
(default_value=<traits.trait_type._NoDefaultSpecifiedType object>, **metadata)[source]¶ Bases:
traits.trait_types.BaseFloat
A Trait that ensures the position is within the scroll range.
-
range_name
= 'range'¶ the name of the trait holding the range information.
-