📄 richtext.py
字号:
return _richtext.RichTextAttr_SetCharacterStyleName(*args, **kwargs)
def SetParagraphStyleName(*args, **kwargs):
"""SetParagraphStyleName(self, String name)"""
return _richtext.RichTextAttr_SetParagraphStyleName(*args, **kwargs)
def SetParagraphSpacingAfter(*args, **kwargs):
"""SetParagraphSpacingAfter(self, int spacing)"""
return _richtext.RichTextAttr_SetParagraphSpacingAfter(*args, **kwargs)
def SetParagraphSpacingBefore(*args, **kwargs):
"""SetParagraphSpacingBefore(self, int spacing)"""
return _richtext.RichTextAttr_SetParagraphSpacingBefore(*args, **kwargs)
def SetLineSpacing(*args, **kwargs):
"""SetLineSpacing(self, int spacing)"""
return _richtext.RichTextAttr_SetLineSpacing(*args, **kwargs)
def SetBulletStyle(*args, **kwargs):
"""SetBulletStyle(self, int style)"""
return _richtext.RichTextAttr_SetBulletStyle(*args, **kwargs)
def SetBulletNumber(*args, **kwargs):
"""SetBulletNumber(self, int n)"""
return _richtext.RichTextAttr_SetBulletNumber(*args, **kwargs)
def SetBulletSymbol(*args, **kwargs):
"""SetBulletSymbol(self, wxChar symbol)"""
return _richtext.RichTextAttr_SetBulletSymbol(*args, **kwargs)
def GetTextColour(*args, **kwargs):
"""GetTextColour(self) -> Colour"""
return _richtext.RichTextAttr_GetTextColour(*args, **kwargs)
def GetBackgroundColour(*args, **kwargs):
"""GetBackgroundColour(self) -> Colour"""
return _richtext.RichTextAttr_GetBackgroundColour(*args, **kwargs)
def GetAlignment(*args, **kwargs):
"""GetAlignment(self) -> int"""
return _richtext.RichTextAttr_GetAlignment(*args, **kwargs)
def GetTabs(*args, **kwargs):
"""GetTabs(self) -> wxArrayInt"""
return _richtext.RichTextAttr_GetTabs(*args, **kwargs)
def GetLeftIndent(*args, **kwargs):
"""GetLeftIndent(self) -> long"""
return _richtext.RichTextAttr_GetLeftIndent(*args, **kwargs)
def GetLeftSubIndent(*args, **kwargs):
"""GetLeftSubIndent(self) -> long"""
return _richtext.RichTextAttr_GetLeftSubIndent(*args, **kwargs)
def GetRightIndent(*args, **kwargs):
"""GetRightIndent(self) -> long"""
return _richtext.RichTextAttr_GetRightIndent(*args, **kwargs)
def GetFlags(*args, **kwargs):
"""GetFlags(self) -> long"""
return _richtext.RichTextAttr_GetFlags(*args, **kwargs)
def GetFontSize(*args, **kwargs):
"""GetFontSize(self) -> int"""
return _richtext.RichTextAttr_GetFontSize(*args, **kwargs)
def GetFontStyle(*args, **kwargs):
"""GetFontStyle(self) -> int"""
return _richtext.RichTextAttr_GetFontStyle(*args, **kwargs)
def GetFontWeight(*args, **kwargs):
"""GetFontWeight(self) -> int"""
return _richtext.RichTextAttr_GetFontWeight(*args, **kwargs)
def GetFontUnderlined(*args, **kwargs):
"""GetFontUnderlined(self) -> bool"""
return _richtext.RichTextAttr_GetFontUnderlined(*args, **kwargs)
def GetFontFaceName(*args, **kwargs):
"""GetFontFaceName(self) -> String"""
return _richtext.RichTextAttr_GetFontFaceName(*args, **kwargs)
def GetCharacterStyleName(*args, **kwargs):
"""GetCharacterStyleName(self) -> String"""
return _richtext.RichTextAttr_GetCharacterStyleName(*args, **kwargs)
def GetParagraphStyleName(*args, **kwargs):
"""GetParagraphStyleName(self) -> String"""
return _richtext.RichTextAttr_GetParagraphStyleName(*args, **kwargs)
def GetParagraphSpacingAfter(*args, **kwargs):
"""GetParagraphSpacingAfter(self) -> int"""
return _richtext.RichTextAttr_GetParagraphSpacingAfter(*args, **kwargs)
def GetParagraphSpacingBefore(*args, **kwargs):
"""GetParagraphSpacingBefore(self) -> int"""
return _richtext.RichTextAttr_GetParagraphSpacingBefore(*args, **kwargs)
def GetLineSpacing(*args, **kwargs):
"""GetLineSpacing(self) -> int"""
return _richtext.RichTextAttr_GetLineSpacing(*args, **kwargs)
def GetBulletStyle(*args, **kwargs):
"""GetBulletStyle(self) -> int"""
return _richtext.RichTextAttr_GetBulletStyle(*args, **kwargs)
def GetBulletNumber(*args, **kwargs):
"""GetBulletNumber(self) -> int"""
return _richtext.RichTextAttr_GetBulletNumber(*args, **kwargs)
def GetBulletSymbol(*args, **kwargs):
"""GetBulletSymbol(self) -> wxChar"""
return _richtext.RichTextAttr_GetBulletSymbol(*args, **kwargs)
def HasTextColour(*args, **kwargs):
"""HasTextColour(self) -> bool"""
return _richtext.RichTextAttr_HasTextColour(*args, **kwargs)
def HasBackgroundColour(*args, **kwargs):
"""HasBackgroundColour(self) -> bool"""
return _richtext.RichTextAttr_HasBackgroundColour(*args, **kwargs)
def HasAlignment(*args, **kwargs):
"""HasAlignment(self) -> bool"""
return _richtext.RichTextAttr_HasAlignment(*args, **kwargs)
def HasTabs(*args, **kwargs):
"""HasTabs(self) -> bool"""
return _richtext.RichTextAttr_HasTabs(*args, **kwargs)
def HasLeftIndent(*args, **kwargs):
"""HasLeftIndent(self) -> bool"""
return _richtext.RichTextAttr_HasLeftIndent(*args, **kwargs)
def HasRightIndent(*args, **kwargs):
"""HasRightIndent(self) -> bool"""
return _richtext.RichTextAttr_HasRightIndent(*args, **kwargs)
def HasWeight(*args, **kwargs):
"""HasWeight(self) -> bool"""
return _richtext.RichTextAttr_HasWeight(*args, **kwargs)
def HasSize(*args, **kwargs):
"""HasSize(self) -> bool"""
return _richtext.RichTextAttr_HasSize(*args, **kwargs)
def HasItalic(*args, **kwargs):
"""HasItalic(self) -> bool"""
return _richtext.RichTextAttr_HasItalic(*args, **kwargs)
def HasUnderlined(*args, **kwargs):
"""HasUnderlined(self) -> bool"""
return _richtext.RichTextAttr_HasUnderlined(*args, **kwargs)
def HasFaceName(*args, **kwargs):
"""HasFaceName(self) -> bool"""
return _richtext.RichTextAttr_HasFaceName(*args, **kwargs)
def HasFont(*args, **kwargs):
"""HasFont(self) -> bool"""
return _richtext.RichTextAttr_HasFont(*args, **kwargs)
def HasParagraphSpacingAfter(*args, **kwargs):
"""HasParagraphSpacingAfter(self) -> bool"""
return _richtext.RichTextAttr_HasParagraphSpacingAfter(*args, **kwargs)
def HasParagraphSpacingBefore(*args, **kwargs):
"""HasParagraphSpacingBefore(self) -> bool"""
return _richtext.RichTextAttr_HasParagraphSpacingBefore(*args, **kwargs)
def HasLineSpacing(*args, **kwargs):
"""HasLineSpacing(self) -> bool"""
return _richtext.RichTextAttr_HasLineSpacing(*args, **kwargs)
def HasCharacterStyleName(*args, **kwargs):
"""HasCharacterStyleName(self) -> bool"""
return _richtext.RichTextAttr_HasCharacterStyleName(*args, **kwargs)
def HasParagraphStyleName(*args, **kwargs):
"""HasParagraphStyleName(self) -> bool"""
return _richtext.RichTextAttr_HasParagraphStyleName(*args, **kwargs)
def HasBulletStyle(*args, **kwargs):
"""HasBulletStyle(self) -> bool"""
return _richtext.RichTextAttr_HasBulletStyle(*args, **kwargs)
def HasBulletNumber(*args, **kwargs):
"""HasBulletNumber(self) -> bool"""
return _richtext.RichTextAttr_HasBulletNumber(*args, **kwargs)
def HasBulletSymbol(*args, **kwargs):
"""HasBulletSymbol(self) -> bool"""
return _richtext.RichTextAttr_HasBulletSymbol(*args, **kwargs)
def HasFlag(*args, **kwargs):
"""HasFlag(self, long flag) -> bool"""
return _richtext.RichTextAttr_HasFlag(*args, **kwargs)
def IsCharacterStyle(*args, **kwargs):
"""IsCharacterStyle(self) -> bool"""
return _richtext.RichTextAttr_IsCharacterStyle(*args, **kwargs)
def IsParagraphStyle(*args, **kwargs):
"""IsParagraphStyle(self) -> bool"""
return _richtext.RichTextAttr_IsParagraphStyle(*args, **kwargs)
def IsDefault(*args, **kwargs):
"""IsDefault(self) -> bool"""
return _richtext.RichTextAttr_IsDefault(*args, **kwargs)
_richtext.RichTextAttr_swigregister(RichTextAttr)
cvar = _richtext.cvar
RICHTEXT_ALL = cvar.RICHTEXT_ALL
RICHTEXT_NONE = cvar.RICHTEXT_NONE
TEXT_ATTR_CHARACTER = _richtext.TEXT_ATTR_CHARACTER
TEXT_ATTR_PARAGRAPH = _richtext.TEXT_ATTR_PARAGRAPH
TEXT_ATTR_ALL = _richtext.TEXT_ATTR_ALL
class RichTextCtrl(_windows.ScrolledWindow):
"""Proxy of C++ RichTextCtrl 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=-1, String value=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=RE_MULTILINE) -> RichTextCtrl
"""
_richtext.RichTextCtrl_swiginit(self,_richtext.new_RichTextCtrl(*args, **kwargs))
self._setOORInfo(self)
def Create(*args, **kwargs):
"""
Create(self, Window parent, int id=-1, String value=EmptyString,
Point pos=DefaultPosition, Size size=DefaultSize,
long style=RE_MULTILINE) -> bool
"""
return _richtext.RichTextCtrl_Create(*args, **kwargs)
def GetValue(*args, **kwargs):
"""GetValue(self) -> String"""
return _richtext.RichTextCtrl_GetValue(*args, **kwargs)
def SetValue(*args, **kwargs):
"""SetValue(self, String value)"""
return _richtext.RichTextCtrl_SetValue(*args, **kwargs)
def GetRange(*args, **kwargs):
"""GetRange(self, long from, long to) -> String"""
return _richtext.RichTextCtrl_GetRange(*args, **kwargs)
def GetLineLength(*args, **kwargs):
"""GetLineLength(self, long lineNo) -> int"""
return _richtext.RichTextCtrl_GetLineLength(*args, **kwargs)
def GetLineText(*args, **kwargs):
"""GetLineText(self, long lineNo) -> String"""
return _richtext.RichTextCtrl_GetLineText(*args, **kwargs)
def GetNumberOfLines(*args, **kwargs):
"""GetNumberOfLines(self) -> int"""
return _richtext.RichTextCtrl_GetNumberOfLines(*args, **kwargs)
def IsModified(*args, **kwargs):
"""IsModified(self) -> bool"""
return _richtext.RichTextCtrl_IsModified(*args, **kwargs)
def IsEditable(*args, **kwargs):
"""IsEditable(self) -> bool"""
return _richtext.RichTextCtrl_IsEditable(*args, **kwargs)
def IsSingleLine(*args, **kwargs):
"""IsSingleLine(self) -> bool"""
return _richtext.RichTextCtrl_IsSingleLine(*args, **kwargs)
def IsMultiLine(*args, **kwargs):
"""IsMultiLine(self) -> bool"""
return _richtext.RichTextCtrl_IsMultiLine(*args, **kwargs)
def GetSelection(*args, **kwargs):
"""
GetSelection() --> (start, end)
Returns the start and end positions of the current selection. If the
values are the same then there is no selection.
"""
return _richtext.RichTextCtrl_GetSelection(*args, **kwargs)
def GetStringSelection(*args, **kwargs):
"""GetStringSelection(self) -> String"""
return _richtext.RichTextCtrl_GetStringSelection(*args, **kwargs)
def GetFilename(*args, **kwargs):
"""GetFilename(self) -> String"""
return _richtext.RichTextCtrl_GetFilename(*args, **kwargs)
def SetFilename(*args, **kwargs):
"""SetFilename(self, String filename)"""
return _richtext.RichTextCtrl_SetFilename(*args, **kwargs)
def SetDelayedLayoutThreshold(*args, **kwargs):
"""
SetDelayedLayoutThreshold(self, long threshold)
Set the threshold in character positions for doing layout optimization
during sizing.
"""
return _richtext.RichTextCtrl_SetDelayedLayoutThreshold(*args, **kwargs)
def GetDelayedLayoutThreshold(*args, **kwargs):
"""
GetDelayedLayoutThreshold(self) -> long
Get the threshold in character positions for doing layout optimization
during sizing.
"""
return _richtext.RichTextCtrl_GetDelayedLayoutThreshold(*args, **kwargs)
def Clear(*args, **kwargs):
"""Clear(self)"""
return _richtext.RichTextCtrl_Clear(*args, **kwargs)
def Replace(*args, **kwargs):
"""Replace(self, long from, long to, String value)"""
return _richtext.RichTextCtrl_Replace(*args, **kwargs)
def Remove(*args, **kwargs):
"""Remove(self, long from, long to)"""
return _richtext.RichTextCtrl_Remove(*args, **kwargs)
def LoadFile(*args, **kwargs):
"""
LoadFile(self, String file, int type=RICHTEXT_TYPE_ANY) -> bool
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -