AGW Logo

svn SVN Revision 68955 For hypertreelist

This file contains the SVN revision history for hypertreelist, at revision 68955.

Available information include commit date, the name of the committer, the file size, the SVN log messages and a diff from the previous version (if available).


file_info File Information

  • Commit Date: 15-Apr-2009 08:00:48 UTC
  • Committer: AG
  • File Size: 185482 byte(s)

svn_log Log Messages

The following log message was entered by the committer:

  • Fix GetPrevExpanded/GetNextExpanded issues with CustomTreeCtrl and HyperTreeList. Thanks to struppimoppi for the partial patch.

svn_diff Diff To Previous Version (68881)

Version SVN diff:

--- wxPython/3rdParty/AGW/agw/hypertreelist.py      2011/08/25 16:40:17     68881
+++ wxPython/3rdParty/AGW/agw/hypertreelist.py      2011/08/29 19:08:33     68955
@@ -2299,7 +2299,7 @@
:param `item`: an instance of L{TreeListItem}.
"""

-        return self.GetNext(item, False)
+        return CustomTreeCtrl.GetNextExpanded(self, item)


def GetPrevExpanded(self, item):
@@ -2309,7 +2309,7 @@
:param `item`: an instance of L{TreeListItem}.
"""

-        return self.GetPrev(item, False)
+        return CustomTreeCtrl.GetPrevExpanded(self, item)


def GetFirstVisibleItem(self):
@@ -2325,7 +2325,7 @@
:param `item`: an instance of L{TreeListItem}.
"""

-        i = self.GetNext(item, False)
+        i = self.GetPrev(item)
while i:
if self.IsItemVisible(i):
return i
@@ -4750,6 +4750,7 @@
:param `item`: an instance of L{TreeListItem};
:param `column`: an integer specifying the column index.
"""
+
return EditTextCtrl(self.GetMainWindow(), -1, item, column,
self.GetMainWindow(), item.GetText(column),
style=self.GetTextCtrlStyle(column))
@@ -4761,10 +4762,11 @@
labels of items.

Override this function in the derived class to support a different
-        style, e.g. wx.TE_MULTILINE.
+        style, e.g. ``wx.TE_MULTILINE``.

:param `column`: an integer specifying the column index.
"""
+
return self.GetTextCtrlAlignmentStyle(column) | wx.TE_PROCESS_ENTER


@@ -4776,6 +4778,7 @@

:param `column`: an integer specifying the column index.
"""
+
header_win = self.GetHeaderWindow()
alignment = header_win.GetColumnAlignment(column)
return {wx.ALIGN_LEFT: wx.TE_LEFT,
Tree