projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
936bbec
)
Even blocker text
author
Stefano Rivera
<stefano@rivera.za.net>
Sun, 11 May 2014 21:01:54 +0000
(23:01 +0200)
committer
Stefano Rivera
<stefano@rivera.za.net>
Sun, 11 May 2014 21:01:54 +0000
(23:01 +0200)
naja/widgets/text.py
patch
|
blob
|
history
diff --git
a/naja/widgets/text.py
b/naja/widgets/text.py
index 74ca641bf7c1186144c94a2b03123b4e078677ec..5af028daf48cfd411959780f4cd17c2ea64ac7ab 100644
(file)
--- a/
naja/widgets/text.py
+++ b/
naja/widgets/text.py
@@
-13,15
+13,15
@@
class TextWidget(Widget):
self.text = text
self.fontname = fontname or FONT
self.text = text
self.fontname = fontname or FONT
- self.fontsize = (fontsize or FONT_SIZE) /
2
+ self.fontsize = (fontsize or FONT_SIZE) /
/ 4
self.colour = convert_colour(colour or (0, 0, 0))
def prepare(self):
self.font = resources.get_font(self.fontname, self.fontsize)
text = self.font.render(self.text, True, self.colour)
text_rect = text.get_rect()
self.colour = convert_colour(colour or (0, 0, 0))
def prepare(self):
self.font = resources.get_font(self.fontname, self.fontsize)
text = self.font.render(self.text, True, self.colour)
text_rect = text.get_rect()
- self.surface = pygame.transform.scale(text, (text_rect.width *
2
,
- text_rect.height *
2
))
+ self.surface = pygame.transform.scale(text, (text_rect.width *
4
,
+ text_rect.height *
4
))
self.size = self.surface.get_rect().size
def draw(self, surface):
self.size = self.surface.get_rect().size
def draw(self, surface):