Merge branch 'master' into fix-issue503

This commit is contained in:
Robin Dunn
2017-09-07 10:48:16 -05:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -70,6 +70,9 @@ Changes in this release include the following:
* Add wx.Simplebook class.
* Fix exception in wx.lib.agw.customtreectrl when calling SortChildren. (#463,
#500)
* Fix missing imports needed for drawing the legend in wx.lib.plot. (#503)

View File

@@ -5935,8 +5935,8 @@ class CustomTreeCtrl(wx.ScrolledWindow):
if len(children) > 1:
self._dirty = True
children = six.sort(children, self.OnCompareItems)
item._children = children
from functools import cmp_to_key
children.sort(key=cmp_to_key(self.OnCompareItems))
def GetImageList(self):