diff pyntnclick/state.py @ 638:d1ec9e739e23 pyntnclick

Make TextWidget work (probably)
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 12 Feb 2012 01:27:53 +0200
parents 2748d3afcae5
children e8daeb766939
line wrap: on
line diff
--- a/pyntnclick/state.py	Sun Feb 12 00:59:49 2012 +0200
+++ b/pyntnclick/state.py	Sun Feb 12 01:27:53 2012 +0200
@@ -2,7 +2,7 @@
 
 import copy
 
-from widgets import BoomLabel
+from widgets.text import TextWidget
 from pygame.rect import Rect
 from pygame.color import Color
 
@@ -315,7 +315,7 @@
                 self.game.current_thing.get_description())
         if text is None:
             return None
-        label = BoomLabel(text)
+        label = TextWidget((10, 10), text)
         label.set_margin(5)
         label.border_width = 1
         label.border_color = (0, 0, 0)