X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2ccce28add4d71f5b2a7456d60c08e1d3b45abf..eac789ff9ce99e51d40a71eb989350cbfa8b1eef:/wxPython/contrib/stc/stc.i diff --git a/wxPython/contrib/stc/stc.i b/wxPython/contrib/stc/stc.i index 9fc7c31355..1487f75512 100644 --- a/wxPython/contrib/stc/stc.i +++ b/wxPython/contrib/stc/stc.i @@ -30,15 +30,18 @@ languages are built-in." %import core.i %import misc.i // for DnD +//%import gdi.i // for wxFontEncoding + %pythoncode { wx = _core } %pythoncode { __docfilter__ = wx.__DocFilter(globals()) } MAKE_CONST_WXSTRING(STCNameStr); -%include _stc_rename.i %include _stc_docstrings.i +enum wxFontEncoding; // forward declare + MustHaveApp(wxStyledTextCtrl); //--------------------------------------------------------------------------- @@ -46,6 +49,13 @@ MustHaveApp(wxStyledTextCtrl); %include stc.h +%extend wxStyledTextCtrl { + %pythoncode { + GetCaretLineBack = GetCaretLineBackground + SetCaretLineBack = SetCaretLineBackground + } +} + //--------------------------------------------------------------------------- // Python functions to act like the event macros @@ -75,6 +85,7 @@ EVT_STC_ZOOM = wx.PyEventBinder( wxEVT_STC_ZOOM, 1 ) EVT_STC_HOTSPOT_CLICK = wx.PyEventBinder( wxEVT_STC_HOTSPOT_CLICK, 1 ) EVT_STC_HOTSPOT_DCLICK = wx.PyEventBinder( wxEVT_STC_HOTSPOT_DCLICK, 1 ) EVT_STC_CALLTIP_CLICK = wx.PyEventBinder( wxEVT_STC_CALLTIP_CLICK, 1 ) +EVT_STC_AUTOCOMP_SELECTION = wx.PyEventBinder( wxEVT_STC_AUTOCOMP_SELECTION, 1 ) } //---------------------------------------------------------------------------