def removeOnDeselectCallback(self, node): if islist(node): for n in node: if (n in self.callOnDeselect): del self.callOnDeselect[n] elif (node in self.callOnDeselect): del self.callOnDeselect[node]
def onDeselect(self, node, callback): if islist(node): for n in node: self.callOnDeselect[n] = callback else: self.callOnDeselect[node] = callback