Skip to content

Commit

Permalink
Merge pull request #41 from RetiredWizard/main
Browse files Browse the repository at this point in the history
Replace depreciated .show()
  • Loading branch information
dhalbert authored Nov 3, 2023
2 parents 1099beb + 41a94c1 commit f772584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/funhouse_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def set_label_color(conditional, index, on_color):


# Create the labels
funhouse.display.show(None)
funhouse.display.root_group = None
slider_label = funhouse.add_text(
text="Slider:", text_position=(50, 30), text_color=0x606060
)
Expand Down Expand Up @@ -62,7 +62,7 @@ def set_label_color(conditional, index, on_color):
pres_label = funhouse.add_text(
text="Pres:", text_position=(50, 60), text_color=0xFF00FF
)
funhouse.display.show(funhouse.splash)
funhouse.display.root_group = funhouse.splash

while True:
funhouse.set_text("Temp %0.1F" % funhouse.peripherals.temperature, temp_label)
Expand Down

0 comments on commit f772584

Please sign in to comment.