X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54f9ee450905e98296e6afd1376b3d1e06a1e00f..19f8ec0aaee8729eb76a634b5b57a1cf4aa6a3f6:/wxPython/contrib/stc/stc.i diff --git a/wxPython/contrib/stc/stc.i b/wxPython/contrib/stc/stc.i index 199798909a..3f11a3fc07 100644 --- a/wxPython/contrib/stc/stc.i +++ b/wxPython/contrib/stc/stc.i @@ -10,7 +10,13 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -%module stc +%define DOCSTRING +"The `StyledTextCtrl` provides a text editor that can used as a syntax +highlighting source code editor, or similar. Lexers for several programming +languages are built-in." +%enddef + +%module(package="wx", docstring=DOCSTRING) stc %{ @@ -24,14 +30,20 @@ %import core.i %import misc.i // for DnD +//%import gdi.i // for wxFontEncoding + %pythoncode { wx = _core } -%pythoncode { __docfilter__ = wx.__docfilter__ } +%pythoncode { __docfilter__ = wx.__DocFilter(globals()) } MAKE_CONST_WXSTRING(STCNameStr); %include _stc_rename.i +%include _stc_docstrings.i + +enum wxFontEncoding; // forward declare +MustHaveApp(wxStyledTextCtrl); //--------------------------------------------------------------------------- // Get all our defs from the REAL header file. @@ -55,7 +67,6 @@ EVT_STC_MODIFIED = wx.PyEventBinder( wxEVT_STC_MODIFIED, 1 ) EVT_STC_MACRORECORD = wx.PyEventBinder( wxEVT_STC_MACRORECORD, 1 ) EVT_STC_MARGINCLICK = wx.PyEventBinder( wxEVT_STC_MARGINCLICK, 1 ) EVT_STC_NEEDSHOWN = wx.PyEventBinder( wxEVT_STC_NEEDSHOWN, 1 ) -EVT_STC_POSCHANGED = wx.PyEventBinder( wxEVT_STC_POSCHANGED, 1 ) EVT_STC_PAINTED = wx.PyEventBinder( wxEVT_STC_PAINTED, 1 ) EVT_STC_USERLISTSELECTION = wx.PyEventBinder( wxEVT_STC_USERLISTSELECTION, 1 ) EVT_STC_URIDROPPED = wx.PyEventBinder( wxEVT_STC_URIDROPPED, 1 )