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)