From f76da0f2025e8d371dfca6316c2d8fbcb9ab4b18 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Sun, 12 Nov 2023 15:36:37 +0100 Subject: [PATCH] pg: In TextButton.blit(), padding was used as if it would be still an int. --- pg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)