git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-08-07 21:06:17 +00:00
parent 7681345971
commit 3e60899273

View File

@@ -37,13 +37,15 @@ class MVCTreeNode:
screen placement, the actual data associated with it, and more. These are screen placement, the actual data associated with it, and more. These are
the nodes passed to all the other helper parts to do their work with. the nodes passed to all the other helper parts to do their work with.
""" """
def __init__(self, data=None, parent = None, kids = [], x = 0, y = 0): def __init__(self, data=None, parent = None, kids = None, x = 0, y = 0):
self.x = 0 self.x = 0
self.y = 0 self.y = 0
self.projx = 0 self.projx = 0
self.projy = 0 self.projy = 0
self.parent = parent self.parent = parent
self.kids = kids self.kids = kids
if self.kids is None:
self.kids = []
self.data = data self.data = data
self.expanded = false self.expanded = false
self.selected = false self.selected = false