mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user