wx.lib.customtreectrl patches from Andrea Gavana.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-12-18 23:18:07 +00:00
parent 89d1e2eeab
commit facc1d350b
3 changed files with 14 additions and 4 deletions

View File

@@ -1816,7 +1816,6 @@ class CustomTreeCtrl(CT.CustomTreeCtrl):
self.log.write("Beginning Drag..." + "\n") self.log.write("Beginning Drag..." + "\n")
event.Allow() event.Allow()
event.Skip()
def OnBeginRDrag(self, event): def OnBeginRDrag(self, event):
@@ -1826,7 +1825,6 @@ class CustomTreeCtrl(CT.CustomTreeCtrl):
self.log.write("Beginning Right Drag..." + "\n") self.log.write("Beginning Right Drag..." + "\n")
event.Allow() event.Allow()
event.Skip()
def OnEndDrag(self, event): def OnEndDrag(self, event):

View File

@@ -1,6 +1,18 @@
Recent Changes for wxPython Recent Changes for wxPython
===================================================================== =====================================================================
2.8.0.2
-------
*
wxGTK: Fix for controls on a toolbar being the full height of the
toolbar instead of their natural height.
wx.lib.customtreectrl patches from Andrea Gavana.
2.8.0.1 2.8.0.1
------- -------

View File

@@ -4855,7 +4855,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
current = self.GetItemParent(current) current = self.GetItemParent(current)
if current: if current:
next = self.GetNextSibling(current) next = self.GetNextSibling(current)
if not self.IsEnabled(next): if not next or not self.IsEnabled(next):
next = None next = None
else: else:
@@ -5130,7 +5130,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
underMouse = thisItem underMouse = thisItem
underMouseChanged = underMouse != self._underMouse underMouseChanged = underMouse != self._underMouse
if underMouse and (flags & TREE_HITTEST_ONITEMBUTTON) and not event.LeftIsDown() and \ if underMouse and (flags & TREE_HITTEST_ONITEM) and not event.LeftIsDown() and \
not self._isDragging and (not self._renameTimer or not self._renameTimer.IsRunning()): not self._isDragging and (not self._renameTimer or not self._renameTimer.IsRunning()):
underMouse = underMouse underMouse = underMouse
else: else: