comparison pyntnclick/state.py @ 636:2748d3afcae5 pyntnclick

Excise albow. Really.
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 12 Feb 2012 00:10:17 +0200
parents 85153f422522
children d1ec9e739e23
comparison
equal deleted inserted replaced
635:d9623d453fd9 636:2748d3afcae5
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.utils import frame_rect
6 from widgets import BoomLabel 5 from widgets import BoomLabel
7 from pygame.rect import Rect 6 from pygame.rect import Rect
8 from pygame.color import Color 7 from pygame.color import Color
8
9
10 def frame_rect(surface, color, rect, thick = 1):
11 # FIXME: Stolen from albow
12 surface.fill(color, (rect.left, rect.top, rect.width, thick))
13 surface.fill(color, (rect.left, rect.bottom - thick, rect.width, thick))
14 surface.fill(color, (rect.left, rect.top, thick, rect.height))
15 surface.fill(color, (rect.right - thick, rect.top, thick, rect.height))
9 16
10 17
11 class Result(object): 18 class Result(object):
12 """Result of interacting with a thing""" 19 """Result of interacting with a thing"""
13 20