Make GetItemImage API consistent with other trees
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2373,7 +2373,7 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
|
|||||||
return item.GetText()
|
return item.GetText()
|
||||||
|
|
||||||
|
|
||||||
def GetItemImage(self, item, which):
|
def GetItemImage(self, item, which=TreeItemIcon_Normal):
|
||||||
"""Returns the item image."""
|
"""Returns the item image."""
|
||||||
|
|
||||||
if not item:
|
if not item:
|
||||||
@@ -5747,4 +5747,4 @@ class CustomTreeCtrl(wx.PyScrolledWindow):
|
|||||||
|
|
||||||
GetClassDefaultAttributes = classmethod(GetClassDefaultAttributes)
|
GetClassDefaultAttributes = classmethod(GetClassDefaultAttributes)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user