docs: various fixes

This commit is contained in:
TomJGooding
2024-07-27 18:07:39 +01:00
parent 262b3af00f
commit 2550cf0698
6 changed files with 7 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ See the [layout](../guide/layout.md) guide for more information.
## Example ## Example
Note how the `layout` style affects the arrangement of widgets in the example below. Note how the `layout` style affects the arrangement of widgets in the example below.
To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](../grid.md). To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](./grid/index.md).
=== "Output" === "Output"

View File

@@ -1,5 +1,5 @@
""" """
This module contains the `DOMQuery` class and related objects.s This module contains the `DOMQuery` class and related objects.
A DOMQuery is a set of DOM nodes returned by [query][textual.dom.DOMNode.query]. A DOMQuery is a set of DOM nodes returned by [query][textual.dom.DOMNode.query].

View File

@@ -514,7 +514,7 @@ class DOMNode(MessagePump):
"""Get a "component" styles object (must be defined in COMPONENT_CLASSES classvar). """Get a "component" styles object (must be defined in COMPONENT_CLASSES classvar).
Args: Args:
name: Name of the component. names: Names of the components.
Raises: Raises:
KeyError: If the component class doesn't exist. KeyError: If the component class doesn't exist.
@@ -1537,7 +1537,7 @@ class DOMNode(MessagePump):
Args: Args:
action: The name of an action. action: The name of an action.
action_parameters: A tuple of any action parameters. parameters: A tuple of any action parameters.
Returns: Returns:
`True` if the action is enabled+visible, `True` if the action is enabled+visible,

View File

@@ -233,7 +233,7 @@ class Size(NamedTuple):
"""Get a new Size with just the height changed. """Get a new Size with just the height changed.
Args: Args:
width: New height. height: New height.
Returns: Returns:
New Size instance. New Size instance.

View File

@@ -15,7 +15,7 @@ class Bar:
highlight_style: The style of the highlighted range of the bar. highlight_style: The style of the highlighted range of the bar.
background_style: The style of the non-highlighted range(s) of the bar. background_style: The style of the non-highlighted range(s) of the bar.
width: The width of the bar, or `None` to fill available width. width: The width of the bar, or `None` to fill available width.
gradient. Optional gradient object. gradient: Optional gradient object.
""" """
def __init__( def __init__(

View File

@@ -806,7 +806,7 @@ class Widget(DOMNode):
"""Get a *Rich* style for a component. """Get a *Rich* style for a component.
Args: Args:
name: Name of component. names: Names of components.
partial: Return a partial style (not combined with parent). partial: Return a partial style (not combined with parent).
Returns: Returns: