comparison gamelib/state.py @ 528:0ce08d5e2acb

pyflakes-induced cleanup.
author Jeremy Thurgood <firxen@gmail.com>
date Fri, 10 Sep 2010 18:47:17 +0200
parents a984cf27b527
children a6f9b6edb6c7
comparison
equal deleted inserted replaced
527:6ef7cc57b94b 528:0ce08d5e2acb
1 """Utilities and base classes for dealing with scenes.""" 1 """Utilities and base classes for dealing with scenes."""
2 2
3 import copy 3 import copy
4 4
5 from albow.resource import get_image, get_font 5 from albow.resource import get_image
6 from albow.utils import frame_rect 6 from albow.utils import frame_rect
7 from widgets import BoomLabel 7 from widgets import BoomLabel
8 from pygame.rect import Rect 8 from pygame.rect import Rect
9 from pygame.color import Color 9 from pygame.color import Color
10 10
269 text = (self.state.current_thing and 269 text = (self.state.current_thing and
270 self.state.current_thing.get_description()) 270 self.state.current_thing.get_description())
271 if text is None: 271 if text is None:
272 return None 272 return None
273 label = BoomLabel(text) 273 label = BoomLabel(text)
274 font = get_font(15, 'VeraBd.ttf')
275 label.set_margin(5) 274 label.set_margin(5)
276 label.border_width = 1 275 label.border_width = 1
277 label.border_color = (0, 0, 0) 276 label.border_color = (0, 0, 0)
278 label.bg_color = Color(210, 210, 210, 255) 277 label.bg_color = Color(210, 210, 210, 255)
279 label.fg_color = (0, 0, 0) 278 label.fg_color = (0, 0, 0)