diff --git a/Tools/idle/TreeWidget.py b/Tools/idle/TreeWidget.py index be80a635e58..37bc58f2ead 100644 --- a/Tools/idle/TreeWidget.py +++ b/Tools/idle/TreeWidget.py @@ -187,7 +187,7 @@ class TreeNode: # _IsExpandable() was mistaken; that's allowed return y+17 for item in sublist: - child = TreeNode(self.canvas, self, item) + child = self.__class__(self.canvas, self, item) self.children.append(child) cx = x+20 cy = y+17