]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/demo/XMLtreeview.py
Fixed wxWindowCreateEvent and wxWindowDestroyEvent to set m_eventType
[wxWidgets.git] / utils / wxPython / demo / XMLtreeview.py
index 3815f014cc9424ea86eef30fe317efec1a50310a..853bd40b8e076a15597c18fbd61cbd14f1f868b9 100644 (file)
@@ -26,7 +26,8 @@ else:
 
         # Define a handler for start element events
         def StartElement(self, name, attrs ):
-            self.nodeStack.append(self.AppendItem(self.nodeStack[-1], name))
+            id = self.AppendItem(self.nodeStack[-1], name)
+            self.nodeStack.append(id)
 
         def EndElement(self,  name ):
             self.nodeStack = self.nodeStack[:-1]