X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c42683a5c011a664405b63abf8a3d76bd257aa2..b7c75283f2144469e8fa6a24ca285b42fab69a6b:/wxPython/src/_cursor.i diff --git a/wxPython/src/_cursor.i b/wxPython/src/_cursor.i index e401bb2e54..6ce76d4cf1 100644 --- a/wxPython/src/_cursor.i +++ b/wxPython/src/_cursor.i @@ -79,7 +79,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 +132,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