Skip to content

Commit 62c9b3e

Browse files
authored
Merge pull request #1422 from FoamyGuy/new_button_api
remove deprecated button api use
2 parents 512ec33 + 78916d6 commit 62c9b3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PyPortal_User_Interface/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def text_box(target, top, string, max_chars):
240240

241241
# Add all of the main buttons to the splash Group
242242
for b in buttons:
243-
splash.append(b.group)
243+
splash.append(b)
244244

245245

246246
# Make a button to change the icon image on view2
@@ -253,7 +253,7 @@ def text_box(target, top, string, max_chars):
253253
buttons.append(button_icon) # adding this button to the buttons group
254254

255255
# Add this button to view2 Group
256-
view2.append(button_icon.group)
256+
view2.append(button_icon)
257257

258258
# Make a button to play a sound on view2
259259
button_sound = Button(x=150, y=170,
@@ -265,7 +265,7 @@ def text_box(target, top, string, max_chars):
265265
buttons.append(button_sound) # adding this button to the buttons group
266266

267267
# Add this button to view2 Group
268-
view3.append(button_sound.group)
268+
view3.append(button_sound)
269269

270270
#pylint: disable=global-statement
271271
def switch_view(what_view):

0 commit comments

Comments
 (0)