You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lexonomy_custom_editor/src/message/message.py

22 lines
513 B

from update import update
class Message:
def update_model(self, model):
raise NotImplementedError("This message does not implement update_model method")
def reset(self):
return True
class ClickMessage(Message):
def __init__(self, event):
event.stopPropagation();
def msg(message_class, params):
def callback(event):
message_instance = message_class(event, params)
update.schedule(message_instance)
return callback