diff --git a/countess/gui/tree.py b/countess/gui/tree.py index 1d50235..d2ed104 100644 --- a/countess/gui/tree.py +++ b/countess/gui/tree.py @@ -289,6 +289,7 @@ def __init__(self, canvas, graph, node_select_callback): self.canvas.bind("", self.on_canvas_motion) self.canvas.bind("", self.on_canvas_leave) self.canvas.bind("", self.on_canvas_delete) + self.canvas.bind("", self.on_canvas_delete) def label_for_node(self, node): label = DraggableLabel(self.canvas, text=node.name, wraplength=125, cursor="hand1", takefocus=True) @@ -304,6 +305,7 @@ def label_for_node(self, node): label.bind("", partial(self.on_configure, node, label), add=True) label.bind("<>", partial(self.on_ghost_release, node), add=True) label.bind("", partial(self.on_delete, node), add=True) + label.bind("", partial(self.on_delete, node), add=True) label.bind("", partial(self.on_enter, node), add=True) label.bind("", partial(self.on_leave, node), add=True)