%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);
//---------------------------------------------------------------------------
%include stc.h
+%extend wxStyledTextCtrl {
+ %pythoncode {
+ GetCaretLineBack = GetCaretLineBackground
+ SetCaretLineBack = SetCaretLineBackground
+ }
+}
+
//---------------------------------------------------------------------------
// Python functions to act like the event macros
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 )
}
//---------------------------------------------------------------------------