I just installed the new version and unfortunately I've encountered a
problem. It appears GetPyData on the wxTreeCtrl doesn't work. The following
code:
Traceback (innermost last):
File "C:\CVS\OPENRPG\xmlrpg.py", line 552, in OnRightClick
(xmlnode, name) = self.GetPyData(item)
File "C:\Program Files\Python\wxPython\controls2.py", line 636, in
GetPyData
val = apply(controls2c.wxTreeCtrl_GetPyData,(self,) + _args, _kwargs)
TypeError: Type error in argument 2 of wxTreeCtrl_GetPyData. Expected
_wxTreeItemId_p.
It seems that nothing I give GetPyData is a valid tree item. Even if I do
something like this.
Is HitTest() different from v2.1.13? Your suggestion work, but that code
worked prior to v2.1.15. Another version question, in v2.1.13 I could add
multiple roots to tree on windows. I noticed that doesn't work with
v2.1.15? is that by design? Just curious. Thanks again for the help.
···
-----Original Message-----
From: wxpython-users-admin@wxwindows.org
[mailto:wxpython-users-admin@wxwindows.org]On Behalf Of Robin Dunn
Sent: Wednesday, April 26, 2000 2:47 PM
To: wxpython-users@wxwindows.org
Subject: Re: [wxPython] wxTreeCtrl::GetPyData problem
I just installed the new version and unfortunately I've encountered a
problem. It appears GetPyData on the wxTreeCtrl doesn't work. The
Yes. I think it was ignoring the flags previously and somebody asked about
how to get it.
Your suggestion work, but that code
worked prior to v2.1.15. Another version question, in v2.1.13 I could add
multiple roots to tree on windows. I noticed that doesn't work with
v2.1.15? is that by design? Just curious. Thanks again for the help.
Yes. It was disabled on Windows to be the same as on GTK. It wasn't real
bullet-proof on windows anyway, it could crashin certain situations.
···
--
Robin Dunn
Software Craftsman
robin@AllDunn.com