X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c2dd16f5546ddfe754c671e0e7cc4e5bc561b4a..5a9f61010bcb20caed178f5616a7e5696b7de9ea:/wxPython/src/_accel.i diff --git a/wxPython/src/_accel.i b/wxPython/src/_accel.i index 0cf237d152..cc20204c42 100644 --- a/wxPython/src/_accel.i +++ b/wxPython/src/_accel.i @@ -165,6 +165,11 @@ const wxAcceleratorTable wxNullAcceleratorTable; %mutable; -wxAcceleratorEntry *wxGetAccelFromString(const wxString& label); +%pythoncode { + def GetAccelFromString(label): + entry = AcceleratorEntry() + entry.FromString(label) + return entry +} //---------------------------------------------------------------------------