Skip to content

Commit f772584

Browse files
authored
Merge pull request #41 from RetiredWizard/main
Replace depreciated .show()
2 parents 1099beb + 41a94c1 commit f772584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: examples/funhouse_simpletest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def set_label_color(conditional, index, on_color):
3030

3131

3232
# Create the labels
33-
funhouse.display.show(None)
33+
funhouse.display.root_group = None
3434
slider_label = funhouse.add_text(
3535
text="Slider:", text_position=(50, 30), text_color=0x606060
3636
)
@@ -62,7 +62,7 @@ def set_label_color(conditional, index, on_color):
6262
pres_label = funhouse.add_text(
6363
text="Pres:", text_position=(50, 60), text_color=0xFF00FF
6464
)
65-
funhouse.display.show(funhouse.splash)
65+
funhouse.display.root_group = funhouse.splash
6666

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

0 commit comments

Comments
 (0)