[[wxPython] wxTreeCtrl Questions]

Greetings -

I'm have some questions about wxTreeCtrl - some of the wxPython functions
do not match the descriptions in the wxWindows documentation.

First of all, the wxTreeCtrl.HitTest method documentation says that the
method will take an empty bitlist as an argument, and modify it to provide
more information on where the point is in relation to the tree node -
whether it is on the item icon or item label, for example. The current
wxPython version does not include this argument. It is possible that it
might be added, maybe in a new method, in the next release of wxPython?
Can anyone suggest a work-around?

From the DOC
wxPython note: in wxPython both the wxTreeItemId and the flags are returned as
a tuple.

Also, many methods will return invalid TreeItemId objects. For example,
the wxTreeCtrl.GetFirstChild documentation states that an invalid
TreeItemId will be returned if the node in question has no children. How
can it be determined if a tree item is invalid? Am I missing something,
or should this be added to wxPython?

use Ok() method

Finally, is there anyway to get compare object identity for TreeItemId
objects? For example, given the objects returned by two calls to
HitTest, can it be determined if they refer to the same tree node?

There was post about this but i don't remember.

Niki Spahiev
e-mail: niki@vintech.bg

···

Paul Jacobs <pjacobs@darwin.epbi.cwru.edu> wrote:

____________________________________________________________________
Get free email and a permanent address at Net@ddress Mail

Finally, is there anyway to get compare object identity for TreeItemId
objects? For example, given the objects returned by two calls to
HitTest, can it be determined if they refer to the same tree node?

If their .this attributes are the same.

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com
http://wxpython.org Java give you jitters?
http://wxpros.com Relax with wxPython!