Skip to content

Commit dd266cb

Browse files
committed
update example scripts to use new API for adding to other Groups
1 parent 4ead3aa commit dd266cb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/display_button_customfont.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
buttons.append(button_6)
140140

141141
for b in buttons:
142-
splash.append(b.group)
142+
splash.append(b)
143143

144144
while True:
145145
p = ts.touch_point

examples/display_button_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
)
4646

4747
# Add button to the display context
48-
splash.append(button.group)
48+
splash.append(button)
4949

5050
# Loop and look for touches
5151
while True:

examples/display_button_soundboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
label_color=None,
4141
name=spot["file"],
4242
)
43-
pyportal.splash.append(button.group)
43+
pyportal.splash.append(button)
4444
buttons.append(button)
4545

4646
last_pressed = None

0 commit comments

Comments
 (0)