diff gamelib/custom_widgets.py @ 803:bcc9277a23e6 pyntnclick

Refactor widget positioning API. Remove unused widgets
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 27 Jan 2013 14:52:16 +0200
parents efa58c92b304
children
line wrap: on
line diff
--- a/gamelib/custom_widgets.py	Sun Jan 27 14:50:33 2013 +0200
+++ b/gamelib/custom_widgets.py	Sun Jan 27 14:52:16 2013 +0200
@@ -8,8 +8,9 @@
     """Custom widget for JIM's speech"""
 
     def __init__(self, gd, mesg):
-        rect = pygame.Rect((0, 0), (1, 1))
-        super(JimLabel, self).__init__(rect, gd,
+        pos = (0, 0)
+        size = None
+        super(JimLabel, self).__init__(pos, gd, size=size,
                 text=mesg, fontname='Monospace.ttf', fontsize=20,
                 bg_color=pygame.Color(255, 175, 127, 191),
                 color=pygame.Color(0, 0, 0),