Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/design-a-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/textual/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 0 additions & 3 deletions src/textual/widgets/_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/textual/widgets/_option_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Loading