mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Added a deprecated compatibility helper for wx.CustomDataFormat
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user