textual.types
Export some objects that are used by Textual and that help document other features.
ActionParseResult
module-attribute
¶
An action is its name and the arbitrary tuple of its arguments.
AnimationLevel
module-attribute
¶
AnimationLevel = Literal['none', 'basic', 'full']
The levels that the TEXTUAL_ANIMATIONS env var can be set to.
CSSPathType
module-attribute
¶
Valid ways of specifying paths to CSS files.
CallbackType
module-attribute
¶
Type used for arbitrary callables used in callbacks.
Direction
module-attribute
¶
Direction = Literal[-1, 1]
Valid values to determine navigation direction.
In a vertical setting, 1 points down and -1 points up. In a horizontal setting, 1 points right and -1 points left.
EasingFunction
module-attribute
¶
Signature for a function that parametrizes animation speed.
An easing function must map the interval [0, 1] into the interval [0, 1].
IgnoreReturnCallbackType
module-attribute
¶
A callback which ignores the return type.
InputValidationOn
module-attribute
¶
Possible messages that trigger input validation.