diff 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
line wrap: on
line diff
--- a/pyntnclick/state.py	Sun Feb 12 00:01:03 2012 +0200
+++ b/pyntnclick/state.py	Sun Feb 12 00:10:17 2012 +0200
@@ -2,12 +2,19 @@
 
 import copy
 
-from albow.utils import frame_rect
 from widgets import BoomLabel
 from pygame.rect import Rect
 from pygame.color import Color
 
 
+def frame_rect(surface, color, rect, thick = 1):
+    # FIXME: Stolen from albow
+    surface.fill(color, (rect.left, rect.top, rect.width, thick))
+    surface.fill(color, (rect.left, rect.bottom - thick, rect.width, thick))
+    surface.fill(color, (rect.left, rect.top, thick, rect.height))
+    surface.fill(color, (rect.right - thick, rect.top, thick, rect.height))
+
+
 class Result(object):
     """Result of interacting with a thing"""