projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix gamestate setup.
[naja.git]
/
naja
/
widgets
/
text.py
diff --git
a/naja/widgets/text.py
b/naja/widgets/text.py
index 12df393f1ff855c8a83aa8cd520c181f5ed19984..53030c55b8ad730c4a7725f07dc1bf9c5dcf1f52 100644
(file)
--- a/
naja/widgets/text.py
+++ b/
naja/widgets/text.py
@@
-3,6
+3,7
@@
import pygame
from naja.constants import FONT, FONT_SIZE
from naja.widgets.base import Widget
from naja.resources import resources
from naja.constants import FONT, FONT_SIZE
from naja.widgets.base import Widget
from naja.resources import resources
+from naja.utils import convert_colour
class TextWidget(Widget):
class TextWidget(Widget):
@@
-13,7
+14,7
@@
class TextWidget(Widget):
self.text = text
self.fontname = fontname or FONT
self.fontsize = (fontsize or FONT_SIZE) / 2
self.text = text
self.fontname = fontname or FONT
self.fontsize = (fontsize or FONT_SIZE) / 2
- self.colour = co
lour or (0, 0, 0
)
+ self.colour = co
nvert_colour(colour or (0, 0, 0)
)
def prepare(self):
self.font = resources.get_font(self.fontname, self.fontsize)
def prepare(self):
self.font = resources.get_font(self.fontname, self.fontsize)