Deprecate old method names.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2014-01-25 08:28:23 +00:00
parent 5ff2917adf
commit a03e3d9cb8

View File

@@ -14,8 +14,9 @@
#----------------------------------------------------------------------
import base64
from wx.lib.six import BytesIO
import wx
from wx.lib.six import BytesIO
try:
b64decode = base64.b64decode
@@ -64,13 +65,13 @@ class PyEmbeddedImage(object):
return wx.Image(stream)
# added for backwards compatibility
getBitmap = GetBitmap
getData = GetData
getIcon = GetIcon
getImage = GetImage
getBitmap = wx.deprecated(GetBitmap)
getData = wx.deprecated(GetData)
getIcon = wx.deprecated(GetIcon)
getImage = wx.deprecated(GetImage)
# define properties, for convenience
Bitmap = property(GetBitmap)
Data = property(GetData)
Icon = property(GetIcon)
Image = property(GetImage)