X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c42683a5c011a664405b63abf8a3d76bd257aa2..3cebfef17b54f9dacc386f090827b8badb2773d2:/wxPython/src/_cursor.i?ds=sidebyside diff --git a/wxPython/src/_cursor.i b/wxPython/src/_cursor.i index e401bb2e54..b1e103f2aa 100644 --- a/wxPython/src/_cursor.i +++ b/wxPython/src/_cursor.i @@ -66,6 +66,8 @@ class wxCursor : public wxGDIObject { public: + RefDoc(wxCursor, ""); // turn it off for the ctors + %extend { DocStr(wxCursor, "Construct a Cursor from a file. Specify the type of file using\n" @@ -79,7 +81,7 @@ public: wxCHECK_MSG(False, NULL, wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead.")); %#else - return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY); + return new wxCursor(*cursorName, type, hotSpotX, hotSpotY); %#endif } } @@ -132,9 +134,11 @@ public: long , GetHandle(), "Get the MS Windows handle for the cursor"); - DocDeclStr( - void , SetHandle(long handle), - "Set the MS WIndows handle for the cursor"); + %extend { + DocStr(SetHandle, + "Set the MS Windows handle to use for the cursor"); + void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); } + } #endif