X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e70b4d2db930a297f0625b7d43109f793fd3338a..93344f258a976d9fe381d3d6a4aeb5bc5035b07f:/wxPython/contrib/stc/stc.i diff --git a/wxPython/contrib/stc/stc.i b/wxPython/contrib/stc/stc.i index ab1e072404..8f83295479 100644 --- a/wxPython/contrib/stc/stc.i +++ b/wxPython/contrib/stc/stc.i @@ -23,7 +23,6 @@ languages are built-in." #include "wx/wxPython/wxPython.h" #include "wx/wxPython/pyclasses.h" #include - %} //--------------------------------------------------------------------------- @@ -47,8 +46,12 @@ MustHaveApp(wxStyledTextCtrl); //--------------------------------------------------------------------------- // Get all our defs from the REAL header file. +#define wxUSE_STC 1 +#define WXDLLIMPEXP_STC +#define WXDLLIMPEXP_CORE %include stc.h + %extend wxStyledTextCtrl { %pythoncode { GetCaretLineBack = GetCaretLineBackground @@ -111,7 +114,10 @@ MustHaveApp(wxStyledTextCtrl); %property(SelectedText, GetSelectedText, doc="See `GetSelectedText`"); %property(SelectedTextRaw, GetSelectedTextRaw, doc="See `GetSelectedTextRaw`"); %property(SelectedTextUTF8, GetSelectedTextUTF8, doc="See `GetSelectedTextUTF8`"); - %property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); + + //%property(Selection, GetSelection, SetSelection, doc="See `GetSelection` and `SetSelection`"); + %property(Selection, GetSelection, doc="See `GetSelection`"); + %property(SelectionEnd, GetSelectionEnd, SetSelectionEnd, doc="See `GetSelectionEnd` and `SetSelectionEnd`"); %property(SelectionMode, GetSelectionMode, SetSelectionMode, doc="See `GetSelectionMode` and `SetSelectionMode`"); %property(SelectionStart, GetSelectionStart, SetSelectionStart, doc="See `GetSelectionStart` and `SetSelectionStart`");