Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lily-way committed May 1, 2024
1 parent 3ee2483 commit 33e35b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __init__(self, top_left, text) -> None:
self._button_color = (210, 210, 210)
self._button_surf = pygame.Surface((self._width, self._height))
self._button_surf.fill(self._button_color)
self._button_rect = self._button_surf.get_rect(top_left=self._top_left)
self._button_rect = self._button_surf.get_rect(topleft=self._top_left)
self._text_surf = FONT.render(self._text, True, self._text_color)
self._text_rect = self._text_surf.get_rect(
center=self._button_rect.center
Expand Down

0 comments on commit 33e35b1

Please sign in to comment.