diff options
author | Steven M. Gava <elguavas@python.net> | 2002-05-27 21:58:05 +0000 |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2002-05-27 21:58:05 +0000 |
commit | 586a76e74f0ef5ec31655b3afed44a06f2ea7d54 (patch) | |
tree | bbfff258e62e747bcac277cda343b7a7172f0f1b /Lib/idlelib/TreeWidget.py | |
parent | 1849c172e130b9936c800bbb89acc0a7d0caf236 (diff) | |
download | cpython-586a76e74f0ef5ec31655b3afed44a06f2ea7d54.tar.gz |
Geiger Ho's patch for better subclassing
Diffstat (limited to 'Lib/idlelib/TreeWidget.py')
-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 60eefdc220..ebc7be01ca 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 |