I am creating a python tree visualizer using wxPython. It will be used as follows:
show_tree([ 'A node with no children', ('A node with children', 'A child node', ('A child node with children', 'Another child')) ])
It worked fine, but it shows the root with the value "Tree." I made it so that it creates several roots, but then found out that I was not allowed to do this. I returned to the source code, but used it to change self.tree = wx.TreeCtrl(self):: self.tree = wx.TreeCtrl(self, style=wx.TR_HIDE_ROOT). It worked, but it did not show small arrows on the side, so you would not know which nodes had children. Is there a way to hide the root of the node, but keep the arrows. Note. I am on a Mac using Python version 2.5 and wxPython version 2.8.4.0.
source
share