diff gamelib/widgets.py @ 187:fbfd8e748ac0

Remove screen reference from State.
author Jeremy Thurgood <firxen@gmail.com>
date Wed, 25 Aug 2010 16:45:06 +0200
parents 97322b78d1c1
children eb101b6fb3dd
line wrap: on
line diff
--- a/gamelib/widgets.py	Wed Aug 25 16:24:55 2010 +0200
+++ b/gamelib/widgets.py	Wed Aug 25 16:45:06 2010 +0200
@@ -23,8 +23,8 @@
 
 class MessageDialog(BoomLabel, CursorWidget):
 
-    def __init__(self, text, wrap_width, **kwds):
-        CursorWidget.__init__(self)
+    def __init__(self, screen, text, wrap_width, **kwds):
+        CursorWidget.__init__(self, screen)
         paras = text.split("\n\n")
         text = "\n".join([textwrap.fill(para, wrap_width) for para in paras])
         albow.controls.Label.__init__(self, text, **kwds)