mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
SIP's deprecated annotation didn't work the way I thought it would, at least for CppMethods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
14
etg/dc.py
14
etg/dc.py
@@ -148,24 +148,26 @@ def run():
|
||||
#else
|
||||
wxPyRaiseNotImplemented();
|
||||
return 0;
|
||||
#endif""",
|
||||
deprecated='Use GetHandle instead.')
|
||||
#endif""")
|
||||
c.addCppMethod('void*', 'GetCGContext', '()', """\
|
||||
#ifdef __WXMAC__
|
||||
return self->GetHandle();
|
||||
#else
|
||||
wxPyRaiseNotImplemented();
|
||||
return NULL;
|
||||
#endif""",
|
||||
deprecated='Use GetHandle instead.')
|
||||
#endif""")
|
||||
c.addCppMethod('void*', 'GetGdkDrawable', '()', """\
|
||||
#ifdef __WXGTK__
|
||||
return self->GetHandle();
|
||||
#else
|
||||
wxPyRaiseNotImplemented();
|
||||
return NULL;
|
||||
#endif""",
|
||||
deprecated='Use GetHandle instead.')
|
||||
#endif""")
|
||||
|
||||
c.addPyCode('DC.GetHDC = wx.deprecated(DC.GetHDC, "Use GetHandle instead.")')
|
||||
c.addPyCode('DC.GetCGContext = wx.deprecated(DC.GetCGContext, "Use GetHandle instead.")')
|
||||
c.addPyCode('DC.GetGdkDrawable = wx.deprecated(DC.GetGdkDrawable, "Use GetHandle instead.")')
|
||||
|
||||
|
||||
|
||||
# TODO: Port the wxPyDrawXXX code and the DrawXXXList methods from Classic
|
||||
|
||||
Reference in New Issue
Block a user