Skip to content

Commit

Permalink
Minor cleanups to documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 authored May 22, 2024
1 parent 1b6fadb commit 216b0e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion changes/2301.feature.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Added a method to replace a child widget with another widget.
APIs were added for replacing a widget in an existing layout, and for obtaining the index of a widget in a list of children.
2 changes: 1 addition & 1 deletion core/src/toga/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def insert(self, index: int, child: Widget) -> None:
self.refresh()

def index(self, child: Widget) -> int:
"""Get the index of a child widget.
"""Get the index of a widget in the list of children of this widget.
:param child: The child widget of interest.
:raises ValueError: If the specified child widget is not found in the
Expand Down

0 comments on commit 216b0e5

Please sign in to comment.