From b5fcdd67bc87316143991d06fa356550afadb4e4 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Fri, 16 May 2014 23:37:56 +0200 Subject: [PATCH] Remove unnecessary overriding of TextWidget.draw in TextBoxWidget.draw. --- naja/widgets/text.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/naja/widgets/text.py b/naja/widgets/text.py index 1ddab05..3068412 100644 --- a/naja/widgets/text.py +++ b/naja/widgets/text.py @@ -64,7 +64,7 @@ class TextWidget(Widget): self.size = self.surface.get_rect().size def draw(self, surface): - surface.blit(self.surface, self.pos) + surface.blit(self.surface, self.rect) class TextBoxWidget(TextWidget): @@ -169,6 +169,3 @@ class TextBoxWidget(TextWidget): y += line_surface.get_rect().height for pos, img in image_map.items(): self.surface.blit(img, pos) - - def draw(self, surface): - surface.blit(self.surface, self.rect) -- 2.34.1