Пример #1
0
 def redraw(self, state):
     # this should go into some "enter" method
     ImageDisplayHandler.redraw(self, state)
     with state.message_view_ctx() as msg:
         msg.update_flag = True
         msg.clear()
         msg.message(self.message)
         msg.message("\n(CONTINUE)", center=True)
Пример #2
0
 def __init__(self, filename, message, exit_action=action.exit_building(), location=""):
     ImageDisplayHandler.__init__(self, filename, location=location)
     self.set_cancel_action(exit_action)
     self.add_key_event("cC", exit_action)
     self.message = message