mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Merge branch 'master' into fix-issue503
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user