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)
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