projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a857cc
)
Remove unnecessary overriding of TextWidget.draw in TextBoxWidget.draw.
author
Simon Cross
<hodgestar@gmail.com>
Fri, 16 May 2014 21:37:56 +0000
(23:37 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Fri, 16 May 2014 21:38:41 +0000
(23:38 +0200)
naja/widgets/text.py
patch
|
blob
|
history
diff --git
a/naja/widgets/text.py
b/naja/widgets/text.py
index 1ddab05915122bf9c22bdbf033f78da57ea0a13f..306841257ccaa090238743be176f680ed651a354 100644
(file)
--- 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)