'Create a set of bindings for nodes.'

def createNodeBindings(self):

    bindings = {'<ButtonPress-1>': self.clickNode, '<B1-Motion>': self.dragNode, '<ButtonRelease-1>': self.releaseNode, '<Enter>': self.enterNode, '<Leave>': self.leaveNode}
    l = Label()
    for (event, binding) in bindings.items():
        l.bind(event, binding)
    return l
