Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
    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
Пример #4
0
    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
Пример #5
0
    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
Пример #6
0
    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