Made the examples work again.
This commit is contained in:
parent
5ed48e4d7c
commit
a167ae70c3
1 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ class ExampleMenu(Page):
|
|||
i = 0
|
||||
|
||||
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]
|
||||
y += button.surface.get_height() + spacing
|
||||
|
||||
|
@ -98,7 +98,7 @@ class ExampleMenu(Page):
|
|||
|
||||
buttons[i] = button
|
||||
|
||||
x += button.surface.get_width() + spacing
|
||||
x += button.image.get_width() + spacing
|
||||
|
||||
i += 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue