diff options
author | Steven M. Gava <elguavas@python.net> | 2002-05-27 21:58:05 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-05-27 21:58:05 (GMT) |
commit | 72de9c7a9c06bfe498c04ef134f510c51a5aef98 (patch) | |
tree | 69682bbe0f0fae6a21d64d02f76676447f25156c | |
parent | 2b6edce773c8f58b9944a80fb77bc9bb0ae571a6 (diff) | |
download | cpython-72de9c7a9c06bfe498c04ef134f510c51a5aef98.zip cpython-72de9c7a9c06bfe498c04ef134f510c51a5aef98.tar.gz cpython-72de9c7a9c06bfe498c04ef134f510c51a5aef98.tar.bz2 |
Geiger Ho's patch for better subclassing
-rw-r--r-- | Lib/idlelib/TreeWidget.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/TreeWidget.py b/Lib/idlelib/TreeWidget.py index 60eefdc..ebc7be0 100644 --- a/Lib/idlelib/TreeWidget.py +++ b/Lib/idlelib/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 |