Made the examples work again.

This commit is contained in:
The Wobbler 2024-12-05 17:38:22 +01:00
parent 5ed48e4d7c
commit a167ae70c3

View file

@ -82,7 +82,7 @@ class ExampleMenu(Page):
i = 0 i = 0
for button in buttons: for button in buttons:
if x + button.surface.get_width() > self.app.screen.get_width(): if x + button.image.get_width() > self.app.screen.get_width():
x = start_pos[0] x = start_pos[0]
y += button.surface.get_height() + spacing y += button.surface.get_height() + spacing
@ -98,7 +98,7 @@ class ExampleMenu(Page):
buttons[i] = button buttons[i] = button
x += button.surface.get_width() + spacing x += button.image.get_width() + spacing
i += 1 i += 1