Mercurial > boomslang
diff pyntnclick/widgets/text.py @ 639:fdc63049b08c pyntnclick
Add game_description to the widgets,, since it looks a useful thing to do
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sun, 12 Feb 2012 01:31:14 +0200 |
parents | d1ec9e739e23 |
children | dae56fc7b902 |
line wrap: on
line diff
--- a/pyntnclick/widgets/text.py Sun Feb 12 01:27:53 2012 +0200 +++ b/pyntnclick/widgets/text.py Sun Feb 12 01:31:14 2012 +0200 @@ -11,8 +11,8 @@ class TextWidget(Widget): fontcache = {} - def __init__(self, rect, text, fontname=None, fontsize=None, color=None): - super(TextWidget, self).__init__(rect) + def __init__(self, rect, gd, text, fontname=None, fontsize=None, color=None): + super(TextWidget, self).__init__(rect, gd) self.text = text if fontname is None: self.fontname = 'Vera.ttf' # FIXME: Hardcoded...