[wxPython-users] Re: SetItemPyData() Clarification
Rich Shepard
rshepard at appl-ecosys.com
Mon Dec 4 13:37:55 PST 2006
On Mon, 4 Dec 2006, Brian Smith wrote:
> Based on what you say about adding grandchildren and what I read in your
> original question, I'm not sure if you need to use SetItemPyData() at all.
> It sounds like you want something like this:
>
> for item in self.appData.polNat:
> child = self.polTree.AppendItem( self.natID, item[0] )
Brian,
Yes! That was it.
I want to attach the items, but have no associated data with each.
Now, while on a roll, if I make child into childID[], will this assign a
unique ID to each child so that one level more could be added to the tree?
Right now I have:
root
|
|->child
|
|->grandchild
and I need to add one more level, potentially to each grandchild.
Many thanks!
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
More information about the wxpython-users
mailing list