diff gamelib/gamescreen.py @ 134:faac82748f5a

Put the leg inside the cryo unit.
author Jeremy Thurgood <firxen@gmail.com>
date Tue, 24 Aug 2010 20:21:07 +0200
parents 0530547a131f
children d264850806dc
line wrap: on
line diff
--- a/gamelib/gamescreen.py	Tue Aug 24 19:49:10 2010 +0200
+++ b/gamelib/gamescreen.py	Tue Aug 24 20:21:07 2010 +0200
@@ -114,6 +114,12 @@
     def mouse_move(self, event):
         self.state.mouse_move_detail(event.pos)
 
+    def show_message(self, message):
+        # Display the message as a modal dialog
+        MessageDialog(message, 60).present()
+        # queue a redraw to show updated state
+        self.invalidate()
+
 
 class ToolBar(Row):
     def __init__(self, items):