X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2ccce28add4d71f5b2a7456d60c08e1d3b45abf..ee45c548e61fa0ce1f8adbcf29d7678769f2c0ed:/wxPython/contrib/stc/_stc_docstrings.i?ds=sidebyside diff --git a/wxPython/contrib/stc/_stc_docstrings.i b/wxPython/contrib/stc/_stc_docstrings.i index 740638b7c8..556f93945b 100644 --- a/wxPython/contrib/stc/_stc_docstrings.i +++ b/wxPython/contrib/stc/_stc_docstrings.i @@ -56,6 +56,13 @@ attributes of a `wx.Font`.", ""); DocStr(wxStyledTextCtrl::StyleSetFontAttr, "Set all font style attributes at once.", ""); +DocStr(wxStyledTextCtrl::StyleSetCharacterSet, + "Set the character set of the font in a style. Converts the Scintilla +wx.stc.STC_CHARSET_* set values to a wxFontEncoding.", ""); + +DocStr(wxStyledTextCtrl::StyleSetFontEncoding, + "Set the font encoding to be used by a style.", ""); + DocStr(wxStyledTextCtrl::CmdKeyExecute, "Perform one of the operations defined by the wx.stc.STC_CMD_* constants.", ""); @@ -159,3 +166,53 @@ DocAStr(wxStyledTextCtrl::GetCurLine, "Retrieve the text of the line containing the caret, and also theindex of the caret on the line.", ""); + + +// For some reason these are not getting the right docstrings, but are +// inheriting the docstrings from wxWindow instead. So we'll have to +// replace the whole proxy method instead. +%feature("shadow") wxStyledTextCtrl::LineDown +%{ + def LineDown(*args, **kwargs): + """ + LineDown(self) + + Move caret down one line. + """ + return _stc.StyledTextCtrl_LineDown(*args, **kwargs) +%} + +%feature("shadow") wxStyledTextCtrl::LineUp +%{ + def LineUp(*args, **kwargs): + """ + LineUp(self) + + Move caret up one line. + """ + return _stc.StyledTextCtrl_LineUp(*args, **kwargs) +%} + +%feature("shadow") wxStyledTextCtrl::PageDown +%{ + def PageDown(*args, **kwargs): + """ + PageDown(self) + + Move caret one page down. + """ + return _stc.StyledTextCtrl_PageDown(*args, **kwargs) +%} + +%feature("shadow") wxStyledTextCtrl::PageUp +%{ + def PageUp(*args, **kwargs): + """ + PageUp(self) + + Move caret one page up. + """ + return _stc.StyledTextCtrl_PageUp(*args, **kwargs) +%} + +