[Idle-dev] Code comment

Geiger Ho s997659@ee.cuhk.edu.hk
Mon, 27 May 2002 12:24:33 +0800 (HKT)


Hi all,

  In the codes obtaining from 0.8.1, TreeWidget.py, line 190,

child = TreeNode(self.canvas, self, item)

  Could it be changed to:

child = self.__class__(self.canvas, self, item)

  I think out of this change because when I want to derive from class
TreeNode, I need to override the draw() method in my derived class as
well.

  Thanks.

Regards,
Geiger