📄 stc.py
字号:
STC_CMD_LINEENDDISPLAYEXTEND = _stc.STC_CMD_LINEENDDISPLAYEXTEND
STC_CMD_HOMEWRAP = _stc.STC_CMD_HOMEWRAP
STC_CMD_HOMEWRAPEXTEND = _stc.STC_CMD_HOMEWRAPEXTEND
STC_CMD_LINEENDWRAP = _stc.STC_CMD_LINEENDWRAP
STC_CMD_LINEENDWRAPEXTEND = _stc.STC_CMD_LINEENDWRAPEXTEND
STC_CMD_VCHOMEWRAP = _stc.STC_CMD_VCHOMEWRAP
STC_CMD_VCHOMEWRAPEXTEND = _stc.STC_CMD_VCHOMEWRAPEXTEND
STC_CMD_LINECOPY = _stc.STC_CMD_LINECOPY
STC_CMD_WORDPARTLEFT = _stc.STC_CMD_WORDPARTLEFT
STC_CMD_WORDPARTLEFTEXTEND = _stc.STC_CMD_WORDPARTLEFTEXTEND
STC_CMD_WORDPARTRIGHT = _stc.STC_CMD_WORDPARTRIGHT
STC_CMD_WORDPARTRIGHTEXTEND = _stc.STC_CMD_WORDPARTRIGHTEXTEND
STC_CMD_DELLINELEFT = _stc.STC_CMD_DELLINELEFT
STC_CMD_DELLINERIGHT = _stc.STC_CMD_DELLINERIGHT
STC_CMD_PARADOWN = _stc.STC_CMD_PARADOWN
STC_CMD_PARADOWNEXTEND = _stc.STC_CMD_PARADOWNEXTEND
STC_CMD_PARAUP = _stc.STC_CMD_PARAUP
STC_CMD_PARAUPEXTEND = _stc.STC_CMD_PARAUPEXTEND
STC_CMD_LINEDOWNRECTEXTEND = _stc.STC_CMD_LINEDOWNRECTEXTEND
STC_CMD_LINEUPRECTEXTEND = _stc.STC_CMD_LINEUPRECTEXTEND
STC_CMD_CHARLEFTRECTEXTEND = _stc.STC_CMD_CHARLEFTRECTEXTEND
STC_CMD_CHARRIGHTRECTEXTEND = _stc.STC_CMD_CHARRIGHTRECTEXTEND
STC_CMD_HOMERECTEXTEND = _stc.STC_CMD_HOMERECTEXTEND
STC_CMD_VCHOMERECTEXTEND = _stc.STC_CMD_VCHOMERECTEXTEND
STC_CMD_LINEENDRECTEXTEND = _stc.STC_CMD_LINEENDRECTEXTEND
STC_CMD_PAGEUPRECTEXTEND = _stc.STC_CMD_PAGEUPRECTEXTEND
STC_CMD_PAGEDOWNRECTEXTEND = _stc.STC_CMD_PAGEDOWNRECTEXTEND
STC_CMD_STUTTEREDPAGEUP = _stc.STC_CMD_STUTTEREDPAGEUP
STC_CMD_STUTTEREDPAGEUPEXTEND = _stc.STC_CMD_STUTTEREDPAGEUPEXTEND
STC_CMD_STUTTEREDPAGEDOWN = _stc.STC_CMD_STUTTEREDPAGEDOWN
STC_CMD_STUTTEREDPAGEDOWNEXTEND = _stc.STC_CMD_STUTTEREDPAGEDOWNEXTEND
STC_CMD_WORDLEFTEND = _stc.STC_CMD_WORDLEFTEND
STC_CMD_WORDLEFTENDEXTEND = _stc.STC_CMD_WORDLEFTENDEXTEND
STC_CMD_WORDRIGHTEND = _stc.STC_CMD_WORDRIGHTEND
STC_CMD_WORDRIGHTENDEXTEND = _stc.STC_CMD_WORDRIGHTENDEXTEND
class StyledTextCtrl(_core.Control):
"""Proxy of C++ StyledTextCtrl class"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0, String name=STCNameStr) -> StyledTextCtrl
"""
_stc.StyledTextCtrl_swiginit(self,_stc.new_StyledTextCtrl(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
Size size=DefaultSize, long style=0, String name=wxSTCNameStr) -> bool
"""
return _stc.StyledTextCtrl_Create(*args, **kwargs)
def AddText(*args, **kwargs):
"""
AddText(self, String text)
Add text to the document at current position.
"""
return _stc.StyledTextCtrl_AddText(*args, **kwargs)
def AddStyledText(*args, **kwargs):
"""
AddStyledText(self, wxMemoryBuffer data)
Add array of cells to document.
"""
return _stc.StyledTextCtrl_AddStyledText(*args, **kwargs)
def InsertText(*args, **kwargs):
"""
InsertText(self, int pos, String text)
Insert string at a position.
"""
return _stc.StyledTextCtrl_InsertText(*args, **kwargs)
def ClearAll(*args, **kwargs):
"""
ClearAll(self)
Delete all text in the document.
"""
return _stc.StyledTextCtrl_ClearAll(*args, **kwargs)
def ClearDocumentStyle(*args, **kwargs):
"""
ClearDocumentStyle(self)
Set all style bytes to 0, remove all folding information.
"""
return _stc.StyledTextCtrl_ClearDocumentStyle(*args, **kwargs)
def GetLength(*args, **kwargs):
"""
GetLength(self) -> int
Returns the number of characters in the document.
"""
return _stc.StyledTextCtrl_GetLength(*args, **kwargs)
def GetCharAt(*args, **kwargs):
"""
GetCharAt(self, int pos) -> int
Returns the character byte at the position.
"""
return _stc.StyledTextCtrl_GetCharAt(*args, **kwargs)
def GetCurrentPos(*args, **kwargs):
"""
GetCurrentPos(self) -> int
Returns the position of the caret.
"""
return _stc.StyledTextCtrl_GetCurrentPos(*args, **kwargs)
def GetAnchor(*args, **kwargs):
"""
GetAnchor(self) -> int
Returns the position of the opposite end of the selection to the caret.
"""
return _stc.StyledTextCtrl_GetAnchor(*args, **kwargs)
def GetStyleAt(*args, **kwargs):
"""
GetStyleAt(self, int pos) -> int
Returns the style byte at the position.
"""
return _stc.StyledTextCtrl_GetStyleAt(*args, **kwargs)
def Redo(*args, **kwargs):
"""
Redo(self)
Redoes the next action on the undo history.
"""
return _stc.StyledTextCtrl_Redo(*args, **kwargs)
def SetUndoCollection(*args, **kwargs):
"""
SetUndoCollection(self, bool collectUndo)
Choose between collecting actions into the undo
history and discarding them.
"""
return _stc.StyledTextCtrl_SetUndoCollection(*args, **kwargs)
def SelectAll(*args, **kwargs):
"""
SelectAll(self)
Select all the text in the document.
"""
return _stc.StyledTextCtrl_SelectAll(*args, **kwargs)
def SetSavePoint(*args, **kwargs):
"""
SetSavePoint(self)
Remember the current position in the undo history as the position
at which the document was saved.
"""
return _stc.StyledTextCtrl_SetSavePoint(*args, **kwargs)
def GetStyledText(*args, **kwargs):
"""
GetStyledText(self, int startPos, int endPos) -> wxMemoryBuffer
Retrieve a buffer of cells.
"""
return _stc.StyledTextCtrl_GetStyledText(*args, **kwargs)
def CanRedo(*args, **kwargs):
"""
CanRedo(self) -> bool
Are there any redoable actions in the undo history?
"""
return _stc.StyledTextCtrl_CanRedo(*args, **kwargs)
def MarkerLineFromHandle(*args, **kwargs):
"""
MarkerLineFromHandle(self, int handle) -> int
Retrieve the line number at which a particular marker is located.
"""
return _stc.StyledTextCtrl_MarkerLineFromHandle(*args, **kwargs)
def MarkerDeleteHandle(*args, **kwargs):
"""
MarkerDeleteHandle(self, int handle)
Delete a marker.
"""
return _stc.StyledTextCtrl_MarkerDeleteHandle(*args, **kwargs)
def GetUndoCollection(*args, **kwargs):
"""
GetUndoCollection(self) -> bool
Is undo history being collected?
"""
return _stc.StyledTextCtrl_GetUndoCollection(*args, **kwargs)
def GetViewWhiteSpace(*args, **kwargs):
"""
GetViewWhiteSpace(self) -> int
Are white space characters currently visible?
Returns one of SCWS_* constants.
"""
return _stc.StyledTextCtrl_GetViewWhiteSpace(*args, **kwargs)
def SetViewWhiteSpace(*args, **kwargs):
"""
SetViewWhiteSpace(self, int viewWS)
Make white space characters invisible, always visible or visible outside indentation.
"""
return _stc.StyledTextCtrl_SetViewWhiteSpace(*args, **kwargs)
def PositionFromPoint(*args, **kwargs):
"""
PositionFromPoint(self, Point pt) -> int
Find the position from a point within the window.
"""
return _stc.StyledTextCtrl_PositionFromPoint(*args, **kwargs)
def PositionFromPointClose(*args, **kwargs):
"""
PositionFromPointClose(self, int x, int y) -> int
Find the position from a point within the window but return
INVALID_POSITION if not close to text.
"""
return _stc.StyledTextCtrl_PositionFromPointClose(*args, **kwargs)
def GotoLine(*args, **kwargs):
"""
GotoLine(self, int line)
Set caret to start of a line and ensure it is visible.
"""
return _stc.StyledTextCtrl_GotoLine(*args, **kwargs)
def GotoPos(*args, **kwargs):
"""
GotoPos(self, int pos)
Set caret to a position and ensure it is visible.
"""
return _stc.StyledTextCtrl_GotoPos(*args, **kwargs)
def SetAnchor(*args, **kwargs):
"""
SetAnchor(self, int posAnchor)
Set the selection anchor to a position. The anchor is the opposite
end of the selection from the caret.
"""
return _stc.StyledTextCtrl_SetAnchor(*args, **kwargs)
def GetCurLine(*args, **kwargs):
"""
GetCurLine(self) -> (text, pos)
Retrieve the text of the line containing the caret, and also theindex
of the caret on the line.
"""
return _stc.StyledTextCtrl_GetCurLine(*args, **kwargs)
def GetEndStyled(*args, **kwargs):
"""
GetEndStyled(self) -> int
Retrieve the position of the last correctly styled character.
"""
return _stc.StyledTextCtrl_GetEndStyled(*args, **kwargs)
def ConvertEOLs(*args, **kwargs):
"""
ConvertEOLs(self, int eolMode)
Convert all line endings in the document to one mode.
"""
return _stc.StyledTextCtrl_ConvertEOLs(*args, **kwargs)
def GetEOLMode(*args, **kwargs):
"""
GetEOLMode(self) -> int
Retrieve the current end of line mode - one of CRLF, CR, or LF.
"""
return _stc.StyledTextCtrl_GetEOLMode(*args, **kwargs)
def SetEOLMode(*args, **kwargs):
"""
SetEOLMode(self, int eolMode)
Set the current end of line mode.
"""
return _stc.StyledTextCtrl_SetEOLMode(*args, **kwargs)
def StartStyling(*args, **kwargs):
"""
StartStyling(self, int pos, int mask)
Set the current styling position to pos and the styling mask to mask.
The styling mask can be used to protect some bits in each styling byte from modification.
"""
return _stc.StyledTextCtrl_StartStyling(*args, **kwargs)
def SetStyling(*args, **kwargs):
"""
SetStyling(self, int length, int style)
Cha
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -