mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Deprecate wx.ListItemAttr
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user