Merge pull request #6115 from TomJGooding/docs-fix-misc-typos

docs: fix miscellaneous typos
This commit is contained in:
Will McGugan
2025-09-28 15:53:55 +01:00
committed by GitHub
5 changed files with 4 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Added `bar_renderable` to `ProgressBar` widget https://github.com/Textualize/textual/pull/5963
- Added `BAR_RENDERABLE` to `ProgressBar` widget https://github.com/Textualize/textual/pull/5963
- Added `OptionList.set_options` https://github.com/Textualize/textual/pull/6048
- Added `TextArea.suggestion` https://github.com/Textualize/textual/pull/6048
- Added `TextArea.placeholder` https://github.com/Textualize/textual/pull/6048

View File

@@ -10,7 +10,7 @@ Textual's layout system is flexible enough to accommodate just about any applica
The initial design of your application is best done with a sketch.
You could use a drawing package such as [Excalidraw](https://excalidraw.com/) for your sketch, but pen and paper is equally as good.
Start by drawing a rectangle to represent a blank terminal, then draw a rectangle for each element in your application. Annotate each of the rectangles with the content they will contain, and note wether they will scroll (and in what direction).
Start by drawing a rectangle to represent a blank terminal, then draw a rectangle for each element in your application. Annotate each of the rectangles with the content they will contain, and note whether they will scroll (and in what direction).
For the purposes of this article we are going to design a layout for a Twitter or Mastodon client, which will have a header / footer and a number of columns.

View File

@@ -1267,7 +1267,7 @@ class Widget(DOMNode):
def arrange(self, size: Size, optimal: bool = False) -> DockArrangeResult:
"""Arrange child widgets.
This method is best left along, unless you have a deep understanding of what it does.
This method is best left alone, unless you have a deep understanding of what it does.
Args:
size: Size of container.

View File

@@ -398,7 +398,6 @@ class Button(Widget, can_focus=True):
Args:
label: The text that appears within the button.
disabled: Whether the button is disabled or not.
name: The name of the button.
id: The ID of the button in the DOM.
classes: The CSS classes of the button.
@@ -434,7 +433,6 @@ class Button(Widget, can_focus=True):
Args:
label: The text that appears within the button.
disabled: Whether the button is disabled or not.
name: The name of the button.
id: The ID of the button in the DOM.
classes: The CSS classes of the button.
@@ -470,7 +468,6 @@ class Button(Widget, can_focus=True):
Args:
label: The text that appears within the button.
disabled: Whether the button is disabled or not.
name: The name of the button.
id: The ID of the button in the DOM.
classes: The CSS classes of the button.

View File

@@ -313,7 +313,7 @@ class OptionList(ScrollView, can_focus=True):
@property
def highlighted_option(self) -> Option | None:
"""The currently highlighted options, or `None` if no option is highlighted,
"""The currently highlighted option, or `None` if no option is highlighted.
Returns:
An Option, or `None`.