GetNextSibling in wxTreeCtrl Broken?

Just upgraded to wxPython 2.5.1.5 which has seemed to break some functionality
in the wxTreeCtrl. Namely, I've got a simple function that returns a list of a
nodes children by interating through them using GetFirstChild and
GetNextSibling. This update seems to have fixed the cookie weirdness but now
when I call GetNextSibling passing it the node returned from GetFirstChild i
get the following exception:

Traceback (most recent call last):
  File "sleepy.py",line 821, in ClickDataToGroup
    for gis in self.GetChildren(self.groupTree, groupitem):
  File "sleepy.py",line 738, in GetChildren
    test = self.groupTree.GetNextSibling(test)
  File "C:\Python23\Lib\site-packages\wx\gizmos.py", line 701, in
GetNextSibling
    return _gizmos.TreeListCtrl_GetNextSibling(*args, **kwargs)
TypeError: Expected a pointer

This is the first time I've seen python mention anything about a pointer so
I'm stumped as to what's happening here.

···

--

-Colin

rundel@mail.med.upenn.edu wrote:

Just upgraded to wxPython 2.5.1.5 which has seemed to break some functionality in the wxTreeCtrl. Namely, I've got a simple function that returns a list of a nodes children by interating through them using GetFirstChild and GetNextSibling. This update seems to have fixed the cookie weirdness but now when I call GetNextSibling passing it the node returned from GetFirstChild i get the following exception:

Traceback (most recent call last):
  File "sleepy.py",line 821, in ClickDataToGroup
    for gis in self.GetChildren(self.groupTree, groupitem):
  File "sleepy.py",line 738, in GetChildren
    test = self.groupTree.GetNextSibling(test)
  File "C:\Python23\Lib\site-packages\wx\gizmos.py", line 701, in GetNextSibling
    return _gizmos.TreeListCtrl_GetNextSibling(*args, **kwargs)
TypeError: Expected a pointer

This is the first time I've seen python mention anything about a pointer so I'm stumped as to what's happening here.

What is the type/value of 'test'?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!