Remove unnecessary overriding of TextWidget.draw in TextBoxWidget.draw.
authorSimon Cross <hodgestar@gmail.com>
Fri, 16 May 2014 21:37:56 +0000 (23:37 +0200)
committerSimon Cross <hodgestar@gmail.com>
Fri, 16 May 2014 21:38:41 +0000 (23:38 +0200)
naja/widgets/text.py

index 1ddab05915122bf9c22bdbf033f78da57ea0a13f..306841257ccaa090238743be176f680ed651a354 100644 (file)
@@ -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)