X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8bf5d46efb26ab22575ca9bc0d0ca5d32d6b77a3..cfe17b74353dcf5ed47c1449e6e415aeb0f1c295:/utils/wxPython/demo/XMLtreeview.py diff --git a/utils/wxPython/demo/XMLtreeview.py b/utils/wxPython/demo/XMLtreeview.py index 3815f014cc..853bd40b8e 100644 --- a/utils/wxPython/demo/XMLtreeview.py +++ b/utils/wxPython/demo/XMLtreeview.py @@ -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]