Skip to content

Commit

Permalink
Merge pull request beeware#2792 from mattcen/status-icon-doc-fix
Browse files Browse the repository at this point in the history
fix: Copy/paste typos in Menu status icon docs
  • Loading branch information
freakboy3742 authored Aug 28, 2024
2 parents 851204e + 770211f commit 22d5c1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/2792.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Typos in the status icon examples were corrected.
2 changes: 1 addition & 1 deletion docs/reference/api/resources/command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ For example:
def callback(sender, **kwargs):
print("Command activated")
stuff_group = Group('Stuff', order=40)
stuff_group = toga.Group('Stuff', order=40)
cmd1 = toga.Command(
callback,
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/api/resources/statusicons.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ a sub-menu that itself has a single menu item:
)
# Create a sub-group of the status icon. This will appear as a submenu.
stuff_group = Group('Stuff', parent=status_icon)
stuff_group = toga.Group('Stuff', parent=status_icon)
cmd2 = toga.Command(
callback,
Expand All @@ -141,7 +141,7 @@ a sub-menu that itself has a single menu item:
)
# Add the status icon to the app
app.status_icons.add(status_icon_1, status_icon_2)
app.status_icons.add(status_icon)
# Add the commands to the status icons command set
app.status_icons.commands.add(cmd1, cmd2)
Expand Down

0 comments on commit 22d5c1c

Please sign in to comment.