Deprecate wx.ListItemAttr

This commit is contained in:
Robin Dunn
2018-02-10 12:52:23 -08:00
parent 309f67fc19
commit c4b741b797
2 changed files with 6 additions and 2 deletions

View File

@@ -30,10 +30,10 @@ class TestVirtualList(wx.ListCtrl):
self.SetItemCount(1000000)
self.attr1 = wx.ListItemAttr()
self.attr1 = wx.ItemAttr()
self.attr1.SetBackgroundColour("yellow")
self.attr2 = wx.ListItemAttr()
self.attr2 = wx.ItemAttr()
self.attr2.SetBackgroundColour("light blue")
self.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnItemSelected)

View File

@@ -35,6 +35,10 @@ def run():
# Tweak the parsed meta objects in the module object as needed for
# customizing the generated code and docstrings.
# Compatibility alias
module.addPyCode("""\
ListItemAttr = wx.deprecated(ItemAttr, 'Use ItemAttr instead')
""")
#-------------------------------------------------------
c = module.find('wxListItem')