From eadc94547fc149f93845d03647d2badd93f5d8ad Mon Sep 17 00:00:00 2001 From: Matt Reay Date: Fri, 24 May 2019 10:00:11 -0500 Subject: [PATCH] Pass correct arguement --- traitsui/tree_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/traitsui/tree_node.py b/traitsui/tree_node.py index 08f16a925..d2353794e 100644 --- a/traitsui/tree_node.py +++ b/traitsui/tree_node.py @@ -246,7 +246,7 @@ def append_child(self, object, child): def insert_child(self, object, index, child): """ Inserts a child into the object's children. """ - children = self.get_children() + children = self.get_children(object) children[index:index] = [child] #-------------------------------------------------------------------------