Added a deprecated compatibility helper for wx.CustomDataFormat

This commit is contained in:
Robin Dunn
2017-07-26 15:26:21 -07:00
parent 3fb9ac28cb
commit a312eef892
2 changed files with 14 additions and 0 deletions

View File

@@ -9,6 +9,15 @@ wxPython Changelog
==================
4.0.0b2
-------
* (not yet released)
Added a deprecated compatibility helper for wx.CustomDataFormat.
4.0.0b1
-------
* 22-July-2017

View File

@@ -162,6 +162,11 @@ def run():
module.items.remove(item)
module.insertItemAfter(c, item)
module.addPyCode("""\
def CustomDataFormat(format):
return wx.DataFormat(format)
CustomDataFormat = wx.deprecated(CustomDataFormat, "Use wx.DataFormat instead.")
""")
#------------------------------------------------------------
c = module.find('wxDataObject')