diff --git a/CHANGELOG.md b/CHANGELOG.md index 76f269007d..b8d47de8e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,7 +44,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 diff --git a/docs/how-to/design-a-layout.md b/docs/how-to/design-a-layout.md index 379f307cd8..bc524a518c 100644 --- a/docs/how-to/design-a-layout.md +++ b/docs/how-to/design-a-layout.md @@ -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. diff --git a/src/textual/widget.py b/src/textual/widget.py index a35683690e..79a3a94d2e 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -1267,7 +1267,7 @@ def render_str(self, text_content: str | Content) -> Content: 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. diff --git a/src/textual/widgets/_button.py b/src/textual/widgets/_button.py index 66ace702c7..9d14a0557d 100644 --- a/src/textual/widgets/_button.py +++ b/src/textual/widgets/_button.py @@ -398,7 +398,6 @@ def success( 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 @@ def warning( 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 @@ def error( 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. diff --git a/src/textual/widgets/_option_list.py b/src/textual/widgets/_option_list.py index 52f06114b3..c8e6c8a959 100644 --- a/src/textual/widgets/_option_list.py +++ b/src/textual/widgets/_option_list.py @@ -313,7 +313,7 @@ def option_count(self) -> int: @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`.