projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unnecessary overriding of TextWidget.draw in TextBoxWidget.draw.
[naja.git]
/
naja
/
widgets
/
text.py
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):
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):
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)
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)