* Switch wxTreeItemData to be a %MappedType instead of something that the programmer has to deal with.

* Make [G|S]etItemData be the same as the [G|S]etItemPyData methods in Classic, and make the latter be deprecated aliases.
* Adjust unittests and add one for GetSelections.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-03-29 16:59:30 +00:00
parent 95c5c5f50e
commit 547ad2938e
6 changed files with 124 additions and 138 deletions

View File

@@ -236,3 +236,17 @@ wx.ListCtrl
public. Instead use the associated getter/setter methods or the
auto-generated properties that are using them.
wx.TreeCtrl
-----------
* The GetItemData and SetItemData now behave just like GetItemPyData
and SetItemPyData did in Classic wxPython. In other words, instead
of needing to create and use instances of wx.TreeItemData to
associate Python data objects with tree items, you just use the
Python objects directly. It will also work when passing the data
objects directly to the AppendItem, InsertItem, etc. methods. (If
anybody was actually using the wx.TreeItemData objects directly
before and are unable to adapt then please let Robin know.) The
[G|S]etItemPyData members still exist, but are now deprecated
aliases for [G|S]etItemData.