# HG changeset patch # User Jeremy Thurgood # Date 1329042422 -7200 # Node ID e59b119bb0f966b038bb41e43410cee8dfb26d0c # Parent b2c2b6f562916f8270af4ff53c752b2fde3eadc1 Evict the last BoomLabel. diff -r b2c2b6f56291 -r e59b119bb0f9 pyntnclick/scenewidgets.py --- 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)