From: Simon Cross Date: Fri, 16 May 2014 21:37:56 +0000 (+0200) Subject: Remove unnecessary overriding of TextWidget.draw in TextBoxWidget.draw. X-Git-Tag: 0.1~174 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=b5fcdd67bc87316143991d06fa356550afadb4e4;p=naja.git Remove unnecessary overriding of TextWidget.draw in TextBoxWidget.draw. --- 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)