wx.py.editwindow.EditWindow¶
EditWindow based on StyledTextCtrl.
Class Hierarchy¶
Known Subclasses¶
wx.py.crust.Display
, wx.py.editor.EditWindow
, wx.py.filling.FillingText
, wx.py.shell.Shell
, wx.py.sliceshell.SlicesShell
Known Superclasses¶
Methods Summary¶
Create EditWindow instance. |
|
Return |
|
Return |
|
Return |
|
Return |
|
GetLastPosition() -> int |
|
GetSelection() -> Tuple[int, int] |
|
Check for matching braces. |
|
Selects the text starting at the first position up to |
|
Configure font size, typeface and color for lexer. |
|
ShowPosition(pos) -> None |
Class API¶
- class EditWindow(stc.StyledTextCtrl)¶
EditWindow based on StyledTextCtrl.
Methods¶
- __init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.CLIP_CHILDREN | wx.SUNKEN_BORDER)¶
Create EditWindow instance.
- CanCopy(self)¶
Return
True
if text is selected and can be copied.
- CanCut(self)¶
Return
True
if text is selected and can be cut.
- CanEdit(self)¶
Return
True
if editing should succeed.
- CanPaste(self)¶
Return
True
if pasting should succeed.
- DoFindNext(self, findData, findDlg=None)¶
- GetLastPosition(self)¶
GetLastPosition() -> int
Returns the zero based index of the last position in the text control, which is equal to the number of characters in the control.
- GetRange(self, start, end)¶
-
Returns the string containing the text starting in the positions from and up to to in the control.
- GetSelection(self)¶
GetSelection() -> Tuple[int, int]
Gets the current selection span.
- OnUpdateUI(self, event)¶
Check for matching braces.
- setDisplayLineNumbers(self, state)¶
- SetSelection(self, from_, to_)¶
Selects the text starting at the first position up to (but not including) the character at the last position.
- setStyles(self, faces)¶
Configure font size, typeface and color for lexer.
- ShowPosition(self, pos)¶
ShowPosition(pos) -> None
Makes the line containing the given position visible.