'Add a binding to all tree segments.'

def bind_drag_trees(self, callback, button=1):

    for tseg in list(self._expanded_trees.values()):
        tseg.bind_drag(callback, button)
    for tseg in list(self._collapsed_trees.values()):
        tseg.bind_drag(callback, button)
