def emit(self, signal, data={}): | def emit(self, signal, data={}): | ||||
# NOTE: I'm currently forcing the existance of this "NODE" key in the dictionary given. Not sure if I'll keep this. | # NOTE: I'm currently forcing the existance of this "NODE" key in the dictionary given. Not sure if I'll keep this. | ||||
data["NODE"] = { | data["NODE"] = { | ||||
"name":self.name | |||||
"name":self.name, | |||||
"n":self | "n":self | ||||
} | } | ||||
Events.emit(signal, data) | Events.emit(signal, data) |