diff --git a/pg.py b/pg.py index c978cc6..98db8dd 100644 --- a/pg.py +++ b/pg.py @@ -200,7 +200,7 @@ class TextButton: surface = self.surface pygame.draw.rect(surface, self.bg_color, self.background) - surface.blit(self.text_object, (x + self.padding, y + self.padding)) + surface.blit(self.text_object, (x + self.padding[0], y + self.padding[1])) def check(self, mouse_pos, pressed): return self.button.check(mouse_pos, pressed)