def evt_user_input(cls, input): irp = IRP() irp.__dict__.update(input.__dict__) ui_message('evt_user_input', irp) irp.wait() input.input = irp.input return input
def evt_user_input(cls, input): irp = IRP() irp.__dict__.update(input.__dict__) ui_message("evt_user_input", irp) irp.wait() input.input = irp.input return input
def evt_action_after(cls, act): if hasattr(act, 'ui_meta'): if getattr(act.ui_meta, 'barrier', False): cls.ui_barrier_schedule(process_msg, ('evt_action_after', act)) return act ui_message('evt_action_after', act) return act
def evt_action_after(cls, act): if hasattr(act, "ui_meta"): if getattr(act.ui_meta, "barrier", False): cls.ui_barrier_schedule(process_msg, ("evt_action_after", act)) return act ui_message("evt_action_after", act) return act
def handle(cls, evt, data): name = 'evt_%s' % evt try: f = getattr(cls, name) except AttributeError: ui_message(name, data) return data rst = f(data) return rst
def handle(cls, evt, data): name = "evt_%s" % evt try: f = getattr(cls, name) except AttributeError: ui_message(name, data) return data rst = f(data) return rst