X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e81b607b4322af54190484aa7ee34112337a344e..30e24d9dd5a5abf1c9a375ea259eb239b122b7f7:/wxPython/src/_accel.i?ds=sidebyside diff --git a/wxPython/src/_accel.i b/wxPython/src/_accel.i index 85f441e0b6..0cf237d152 100644 --- a/wxPython/src/_accel.i +++ b/wxPython/src/_accel.i @@ -70,6 +70,12 @@ public: // void SetMenuItem(wxMenuItem *item); // wxMenuItem *GetMenuItem() const; + %newobject Create; + DocDeclStr( + static wxAcceleratorEntry *, Create(const wxString& str), + "Create accelerator corresponding to the specified string, or None if +it coulnd't be parsed.", ""); + DocDeclStr( int , GetFlags(), "Get the AcceleratorEntry's flags.", ""); @@ -148,7 +154,8 @@ items or or of 3-tuples (flags, keyCode, cmdID) wxAcceleratorTable(int n, const wxAcceleratorEntry* entries); ~wxAcceleratorTable(); - bool Ok() const; + bool IsOk() const; + %pythoncode { Ok = IsOk } };