Provide hints for deprecated items about what should be used instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-07-10 05:15:17 +00:00
parent 9b4fe86559
commit aebd862d14
29 changed files with 107 additions and 81 deletions

View File

@@ -118,7 +118,7 @@ def run():
self->DrawLabel(*text, *bitmap, *rect, alignment, indexAccel, &rv);
return new wxRect(rv);
""")
c.addPyCode('DC.DrawImageLabel = wx.deprecated(DC.DrawLabel)')
c.addPyCode('DC.DrawImageLabel = wx.deprecated(DC.DrawLabel, "Use DrawLabel.")')
# Return the array instead of using an output parameter
m = c.find('GetPartialTextExtents')