mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 13:00:07 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user