From: Robin Dunn Date: Wed, 7 Aug 2002 21:06:17 +0000 (+0000) Subject: Bug fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3e60899273993070615df55ff895cc39346754b9 Bug fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/wxPython/lib/mvctree.py b/wxPython/wxPython/lib/mvctree.py index 1853c04077..b00eaa3c09 100644 --- a/wxPython/wxPython/lib/mvctree.py +++ b/wxPython/wxPython/lib/mvctree.py @@ -37,13 +37,15 @@ class MVCTreeNode: 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. """ - 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.y = 0 self.projx = 0 self.projy = 0 self.parent = parent self.kids = kids + if self.kids is None: + self.kids = [] self.data = data self.expanded = false self.selected = false