mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Merge pull request #682 from RobinD42/fix-issue677
Replace use of old cmp() function
This commit is contained in:
@@ -5917,7 +5917,9 @@ class CustomTreeCtrl(wx.ScrolledWindow):
|
||||
:note: The base class version compares items alphabetically.
|
||||
"""
|
||||
|
||||
return cmp(self.GetItemText(item1), self.GetItemText(item2))
|
||||
a = self.GetItemText(item1)
|
||||
b = self.GetItemText(item2)
|
||||
return (a > b) - (a < b) # equivalent to old cmp function
|
||||
|
||||
|
||||
def SortChildren(self, item):
|
||||
|
||||
Reference in New Issue
Block a user