]> git.saurik.com Git - wxWidgets.git/commitdiff
Bug fix
authorRobin Dunn <robin@alldunn.com>
Wed, 7 Aug 2002 21:06:17 +0000 (21:06 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 7 Aug 2002 21:06:17 +0000 (21:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wxPython/lib/mvctree.py

index 1853c04077250fd8d94d840d5f1cef5f815dda75..b00eaa3c094a3a6abac5913adea8a53da9a99953 100644 (file)
@@ -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