Skip to content

Commit

Permalink
Consistent page/button naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchilvers committed Mar 1, 2024
1 parent 124c17d commit b195416
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/farmyard/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@


def navigate(message):
if message.button == "to_goose":
if message.button == "to_honk":
invent.show_page("Honk")
elif message.button == "to_pig":
elif message.button == "to_oink":
invent.show_page("Oink")
elif message.button == "to_code":
invent.show_page("Code")
Expand Down Expand Up @@ -85,7 +85,7 @@ def make_pigs(number_of_oinks):
position="FILL",
),
invent.ui.Button(
name="to_pig",
name="to_oink",
label="Visit Percy",
channel="navigate",
position="FILL",
Expand Down Expand Up @@ -133,7 +133,7 @@ def make_pigs(number_of_oinks):
channel="oink",
),
invent.ui.Button(
name="to_goose",
name="to_honk",
label="Visit Lucy",
channel="navigate",
position="FILL",
Expand Down Expand Up @@ -176,13 +176,13 @@ def make_pigs(number_of_oinks):
invent.ui.Row(
content=[
invent.ui.Button(
name="to_goose",
name="to_honk",
label="Visit Lucy",
channel="navigate",
position="FILL",
),
invent.ui.Button(
name="to_pig",
name="to_oink",
label="Visit Percy",
channel="navigate",
position="FILL",
Expand Down

0 comments on commit b195416

Please sign in to comment.