I am working with the BWidgets tree, but am having difficulty understanding how Parent/Child node relationships are actually handled. More specifically, I think that most people use Trees to REPRESENT hierarchies?...I would like to use the widget to CREATE them. Having said this, the BWidget Tree looks like it is probably the best tree widget for this purpose. But, like os.listdir is doing in Michael Lange's program, I need to generate and cache lists reflecting the contents of each parent node.
Anyway, if you run the program I have included (you'll have to use other icons), I am (so far) able to generate Child-nodes. Now, I want to be able to create 'GrandChildren' from whichever node has focus (need to add highlighting later). I also want to keep track of each node's level in the hierarchy because the level of the node will determine which icons will be used, not its 'state' (ie. open or closed). I think I should be able to do this just fine, once I can gain access to the Parent nodes' names and the Child index positions. However, when I try to grab index positions, parent-names, etc., I am receiving errors because I am trying to grab data from the widget instances, rather than the widgets themselves.
If I seem excessively confused, I hope you'll forgive me. It takes me a few nudges in the right direction before I start to catch on to things like this.