0.9.1 of TreeMixin

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-03-26 19:55:31 +00:00
parent bb7882b5d1
commit 579c608e3e
4 changed files with 42 additions and 8 deletions

View File

@@ -1,6 +1,10 @@
import wx, wx.lib.customtreectrl, wx.gizmos
from wx.lib.mixins import treemixin
try:
import treemixin
except ImportError:
from wx.lib.mixins import treemixin
overview = treemixin.__doc__
class TreeModel(object):
''' TreeModel holds the domain objects that are shown in the different
@@ -104,7 +108,7 @@ class DemoTreeMixin(treemixin.VirtualTree, treemixin.DragAndDrop,
return 1
def OnDrop(self, dropTarget, dragItem):
dropIndex = self.GetIndoxOfItem(dropTarget)
dropIndex = self.GetIndexOfItem(dropTarget)
dropText = self.model.GetText(dropIndex)
dragIndex = self.GetIndexOfItem(dragItem)
dragText = self.model.GetText(dragIndex)