Add wx.GetAccelFromString wrapper for compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-12-29 02:33:07 +00:00
parent 5c33e560c8
commit 661c7ca733

View File

@@ -100,6 +100,15 @@ def run():
# wxPython anyway.
c.find('wxAcceleratorTable').findOverload('resource').ignore()
module.addPyFunction('GetAccelFromString', '(label)',
deprecated=True,
body="""\
accel = wx.AcceleratorEntry()
accel.FromString(label)
return accel
""")
#-----------------------------------------------------------------
tools.doCommonTweaks(module)
tools.runGenerators(module)