changeset 649:e59b119bb0f9 pyntnclick

Evict the last BoomLabel.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 12 Feb 2012 12:27:02 +0200
parents b2c2b6f56291
children 7cc0da0a4633
files pyntnclick/scenewidgets.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/pyntnclick/scenewidgets.py	Sun Feb 12 12:28:27 2012 +0200
+++ b/pyntnclick/scenewidgets.py	Sun Feb 12 12:27:02 2012 +0200
@@ -7,7 +7,7 @@
 from pygame.surface import Surface
 
 from pyntnclick.state import Thing
-from pyntnclick.widgets import BoomLabel
+from pyntnclick.widgets.text import LabelWidget
 
 # XXX: Needs a way to get at resource:
 from pyntnclick.resources import Resources
@@ -44,12 +44,12 @@
     def __init__(self, x, y, text, bg_color=None):
         if bg_color is None:
             bg_color = (127, 127, 127)
-        label = BoomLabel(text)
-        label.set_margin(5)
-        label.border_width = 1
-        label.border_color = (0, 0, 0)
-        label.bg_color = bg_color
-        label.fg_color = (0, 0, 0)
+        label = LabelWidget((0, 0), text)
+        # label.set_margin(5)
+        # label.border_width = 1
+        # label.border_color = (0, 0, 0)
+        # label.bg_color = bg_color
+        # label.fg_color = (0, 0, 0)
         image = Surface(label.size)
         rect = Rect((x, y), label.size)
         label.draw_all(image)