]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/contrib/stc/stc.i
removed tabs and trailing whitespace
[wxWidgets.git] / wxPython / contrib / stc / stc.i
index 9fc7c31355f58a62a1aff84dc056f2b3874e39b4..1487f7551261feda8a16ac4f9583d3c62ceb56df 100644 (file)
@@ -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 )
 }
 
 //---------------------------------------------------------------------------