From 661c7ca7333fd29aadf06d1e580c4c577ff6eeab Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 29 Dec 2012 02:33:07 +0000 Subject: [PATCH] Add wx.GetAccelFromString wrapper for compatibility git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/accel.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etg/accel.py b/etg/accel.py index 41c876ab..081c0b89 100644 --- a/etg/accel.py +++ b/etg/accel.py @@ -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)