Home | Trees | Index | Help |
|
---|
Package wx :: Module stc :: Class StyledTextCtrl |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ | StyledTextCtrl
EditWindow
,
InspectionInfoPanel
,
PyShellWindow
Proxy of C++ StyledTextCtrl class
Method Summary | |
---|---|
Control |
Create a Control. |
Extend life of document. | |
Add array of cells to document. | |
Add text to the document at current position. | |
Add text to the document at current position. | |
Add UTF8 encoded text to the document at the current position. | |
Enlarge the document to a particular size of text bytes. | |
Append a string to the end of the document without changing the selection. | |
Append a string to the end of the document without changing the selection. | |
Append a UTF8 string to the end of the document without changing the selection. | |
bool |
Is there an auto-completion list visible? |
Remove the auto-completion list from the screen. | |
User has selected an item so remove the list and insert the selection. | |
bool |
Retrieve whether or not autocompletion is hidden automatically when nothing matches. |
bool |
Retrieve whether auto-completion cancelled by backspacing before start. |
bool |
Retrieve whether a single item auto-completion list automatically choose the item. |
int |
Get currently selected item position in the auto-completion list |
bool |
Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion. |
bool |
Retrieve state of ignore case flag. |
int |
Set the maximum height, in rows, of auto-completion and user lists. |
int |
Get the maximum width, in characters, of auto-completion and user lists. |
int |
Retrieve the auto-completion list separator character. |
int |
Retrieve the auto-completion list type-separator character. |
int |
Retrieve the position of the caret when the auto-completion list was displayed. |
Select the item in the auto-completion list that starts with a string. | |
Set whether or not autocompletion is hidden automatically when nothing matches. | |
Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created. | |
Should a single item auto-completion list automatically choose the item. | |
Set whether or not autocompletion deletes any word characters after the inserted text upon completion. | |
Define a set of characters that when typed will cause the autocompletion to choose the selected item. | |
Set whether case is significant when performing auto-completion searches. | |
Set the maximum height, in rows, of auto-completion and user lists. | |
Set the maximum width, in characters, of auto-completion and user lists. | |
Change the separator character in the string setting up an auto-completion list. | |
Change the type-separator character in the string setting up an auto-completion list. | |
Display a auto-completion list. | |
Define a set of character that when typed cancel the auto-completion list. | |
Dedent the selected lines. | |
Start a sequence of actions that is undone and redone as a unit. | |
Highlight the character at a position indicating there is no matching brace. | |
Highlight the characters at two positions. | |
int |
Find the position of a matching brace or INVALID_POSITION if no match. |
bool |
Is there an active call tip? |
Remove the call tip from the screen. | |
int |
Retrieve the position where the caret was before displaying the call tip. |
Set the background colour for the call tip. | |
Set the foreground colour for the call tip. | |
Set the foreground colour for the highlighted part of the call tip. | |
Highlight a segment of the definition. | |
Show a call tip containing a definition near position pos. | |
Enable use of STYLE_CALLTIP and set call tip tab size in pixels. | |
Cancel any modes such as call tip or auto-completion list display. | |
bool |
Will a paste succeed? |
bool |
Are there any redoable actions in the undo history? |
bool |
Are there any undoable actions in the undo history? |
Move caret left one character. | |
Move caret left one character extending selection to new caret position. | |
Move caret left one character, extending rectangular selection to new caret position. | |
Move caret right one character. | |
Move caret right one character extending selection to new caret position. | |
Move caret right one character, extending rectangular selection to new caret position. | |
Set the last x chosen value to be the caret x position. | |
Clear the selection. | |
Delete all text in the document. | |
Set all style bytes to 0, remove all folding information. | |
Clear all the registered images. | |
When key+modifier combination km is pressed perform msg. | |
When key+modifier combination km is pressed do nothing. | |
Drop all key mappings. | |
Perform one of the operations defined by the wx.stc.STC_CMD_* constants. | |
Colourise a segment of the document using the current lexing language. | |
Convert all line endings in the document to one mode. | |
Copy the selection to the clipboard. | |
Copy a range of text to the clipboard. | |
Copy argument text to the clipboard. | |
bool |
Do the 2nd phase and create the GUI control. |
void |
Create a new document object. |
Cut the selection to the clipboard. | |
Delete the selection or if no selection, the character before the caret. | |
Delete the selection or if no selection, the character before the caret. | |
Delete back from the current position to the start of the line. | |
Delete forwards from the current position to the end of the line. | |
Delete the word to the left of the caret. | |
Delete the word to the right of the caret. | |
int |
Find the document line of a display line taking hidden lines into account. |
Move caret to last position in document. | |
Move caret to last position in document extending selection to new caret position. | |
Move caret to first position in document. | |
Move caret to first position in document extending selection to new caret position. | |
int |
Allow for simulating a DnD DragOver. |
bool |
Allow for simulating a DnD DropText. |
Switch from insert to overtype mode or the reverse. | |
Delete the undo history. | |
End a sequence of actions that is undone and redone as a unit. | |
Ensure the caret is visible. | |
Ensure a particular line is visible by expanding any header line hiding it. | |
Ensure a particular line is visible by expanding any header line hiding it. | |
int |
Find the position of a column on a line taking into account tabs and multi-byte characters. |
int |
Find some text in the document. |
int |
On Windows, will draw the document into a display context such as a printer. |
Insert a Form Feed character. | |
int |
Returns the position of the opposite end of the selection to the caret. |
bool |
Does a backspace pressed when caret is within indentation unindent? |
bool |
Is drawing done first into a buffer or direct to the screen? |
Colour |
Get the foreground colour of the caret. |
Colour |
Get the colour of the background of the line containing the caret. |
int |
Get the background alpha of the caret line. |
Colour |
Get the colour of the background of the line containing the caret. |
bool |
Is the background of the line containing the caret in a different colour? |
int |
Get the time in milliseconds that the caret is on and off. |
bool |
Can the caret preferred x position only be changed by explicit movement commands? |
int |
Returns the width of the insert mode caret. |
int |
Returns the character byte at the position. |
int |
Get the code page used to interpret the bytes of the document as characters. |
int |
Retrieve the column number of a position, taking tab width into account. |
int |
Get the way control characters are displayed. |
(text, pos) |
Retrieve the text of the line containing the caret, and also theindex of the caret on the line. |
(text, index) |
Retrieve the text of the line containing the caret, and also the index of the caret on the line. |
Retrieve the UTF8 text of the line containing the caret, and also the index of the caret on the line. | |
int |
Returns the line number of the line with the caret. |
int |
Returns the position of the caret. |
void |
Retrieve a pointer to the document object. |
Colour |
Retrieve the colour used in edge indication. |
int |
Retrieve the column number which text should be kept within. |
int |
Retrieve the edge highlight mode. |
bool |
Retrieve whether the maximum scroll position has the last line at the bottom of the view. |
int |
Retrieve the position of the last correctly styled character. |
int |
Retrieve the current end of line mode - one of CRLF, CR, or LF. |
int |
Retrieve the display line at the top of the display. |
bool |
Is a header line expanded? |
int |
Retrieve the fold level of a line. |
int |
Find the parent line of a child line. |
int |
Get the highlighted indentation guide column. |
int |
Retrieve indentation size. |
bool |
Are the indentation guides visible? |
int |
Find the last child line of a header line. |
bool | GetLastKeydownProcessed(self)
|
int |
Retrieve the degree of caching of layout information. |
int |
Returns the number of characters in the document. |
int |
Retrieve the lexing language of the document. |
String |
Retrieve the contents of a line. |
int |
Returns the number of lines in the document. |
int |
Get the position after the last visible characters on a line. |
int |
Retrieve the number of columns that a line is indented. |
int |
Retrieve the position before the first non indentation character on a line. |
wxCharBuffer |
Retrieve the contents of a line. |
int |
Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line). |
int |
Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line). |
int |
Retrieve the extra styling information for a line. |
Retrieve the contents of a line as UTF8. | |
bool |
Is a line visible? |
int |
Returns the size in pixels of the left margin. |
int |
Retrieve the marker mask of a margin. |
int |
Returns the size in pixels of the right margin. |
bool |
Retrieve the mouse click sensitivity of a margin. |
int |
Retrieve the type of a margin. |
int |
Retrieve the width of a margin in pixels. |
int |
Retrieve the last line number that has line state. |
int |
Get which document modification events are sent to the container. |
bool |
Is the document different from when it was last saved? |
bool |
Get whether mouse gets captured. |
int |
Retrieve the time the mouse must sit still to generate a mouse dwell event. |
bool |
Returns true if overtype mode is active otherwise false is returned. |
bool |
Get convert-on-paste setting |
int |
Returns the print colour mode. |
int |
Returns the print magnification. |
int |
Is printing line wrapped? |
String |
Retrieve a 'property' value previously set with SetProperty. |
String |
Retrieve a 'property' value previously set with SetProperty, with '$()' variable replacement on returned buffer. |
int |
Retrieve a 'property' value previously set with SetProperty, interpreted as an int AFTER any '$()' variable replacement. |
bool |
In read-only mode? |
int |
Retrieve the document width assumed for scrolling. |
int |
Get the search flags used by SearchInTarget. |
int |
Get the alpha of the selection. |
String |
Retrieve the selected text. |
wxCharBuffer |
Retrieve the selected text. |
Retrieve the selected text as UTF8. | |
(startPos, endPos) |
Retrieve the start and end positions of the current selection. |
int |
Returns the position at the end of the selection. |
int |
Get the mode of the current selection. |
int |
Returns the position at the start of the selection. |
int |
Get error status. |
int |
Get cursor type. |
bool |
Get internal focus flag. |
int |
Returns the style byte at the position. |
int |
Retrieve number of bits in style bytes used to hold the lexical state. |
int |
Retrieve the number of bits the current lexer needs for styling. |
wxMemoryBuffer |
Retrieve a buffer of cells. |
bool |
Does a tab pressed when caret is within indentation indent? |
int |
Retrieve the visible size of a tab. |
int |
Get the position that ends the target. |
int |
Get the position that starts the target. |
String |
Retrieve all the text in the document. |
int |
Retrieve the number of characters in the document. |
String |
Retrieve a range of text. |
wxCharBuffer |
Retrieve a range of text. |
Retrieve a range of text as UTF8. | |
wxCharBuffer |
Retrieve all the text in the document. |
Retrieve all the text in the document as UTF8. | |
bool |
Is drawing done in two phases with backgrounds drawn before foregrounds? |
bool |
Is undo history being collected? |
bool |
Returns the current UseAntiAliasing setting. |
bool |
Is the horizontal scroll bar visible? |
bool |
Retrieve whether tabs will be used in indentation. |
bool |
Is the vertical scroll bar visible? |
bool |
Are the end of line characters visible? |
int |
Are white space characters currently visible? Returns one of SCWS_* constants. |
int |
Retrieve whether text is word wrapped. |
int |
Retrive the start indent for wrapped lines. |
int |
Retrive the display mode of visual flags for wrapped lines. |
int |
Retrive the location of visual flags for wrapped lines. |
int | GetXOffset(self)
|
int |
Retrieve the zoom level. |
Set caret to start of a line and ensure it is visible. | |
Set caret to a position and ensure it is visible. | |
Make a range of lines invisible. | |
Draw the selection in normal style or with selection highlighted. | |
Move caret to first position on line. | |
Move caret to first position on display line. | |
Move caret to first position on display line extending selection to new caret position. | |
Move caret to first position on line extending selection to new caret position. | |
Move caret to first position on line, extending rectangular selection to new caret position. | |
These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. | |
HomeWrapExtend(self)
| |
Colour |
Retrieve the foreground colour of an indicator. |
int |
Retrieve the style of an indicator. |
Set the foreground colour of an indicator. | |
Set an indicator to plain, squiggle or TT. | |
Insert string at a position. | |
Insert string at a position. | |
Insert UTF8 encoded text at a position. | |
Copy the line containing the caret. | |
Cut the line containing the caret. | |
Delete the line containing the caret. | |
Move caret down one line. | |
Move caret down one line extending selection to new caret position. | |
Move caret down one line, extending rectangular selection to new caret position. | |
Duplicate the current line. | |
Move caret to last position on line. | |
Move caret to last position on display line. | |
Move caret to last position on display line extending selection to new caret position. | |
Move caret to last position on line extending selection to new caret position. | |
Move caret to last position on line, extending rectangular selection to new caret position. | |
LineEndWrap(self)
| |
LineEndWrapExtend(self)
| |
int |
Retrieve the line containing a position. |
int |
How many characters are on a line, not including end of line characters? |
Scroll horizontally and vertically. | |
Scroll the document down, keeping the caret visible. | |
Scroll the document up, keeping the caret visible. | |
Join the lines in the target. | |
int |
Retrieves the number of lines completely visible. |
Split the lines in the target into lines that are less wide than pixelWidth where possible. | |
Switch the current line with the previous. | |
Move caret up one line. | |
Move caret up one line extending selection to new caret position. | |
Move caret up one line, extending rectangular selection to new caret position. | |
bool |
Load the contents of filename into the editor |
Transform the selection to lower case. | |
int |
Add a marker to a line, returning an ID which can be used to find or delete the marker. |
Add a set of markers to a line. | |
Set the symbol used for a particular marker number, and optionally the fore and background colours. | |
Define a marker from a bitmap | |
Delete a marker from a line. | |
Delete all markers with a particular number from all lines. | |
Delete a marker. | |
int |
Get a bit mask of all the markers set on a line. |
int |
Retrieve the line number at which a particular marker is located. |
int |
Find the next line after lineStart that includes a marker in mask. |
int |
Find the previous line before lineStart that includes a marker in mask. |
Set the alpha used for a marker that is drawn in the text area, not the margin. | |
Set the background colour used for a particular marker number. | |
Set the foreground colour used for a particular marker number. | |
Move the caret inside current view if it's not there already. | |
Insert a new line, may use a CRLF, CR or LF depending on EOL mode. | |
Move caret one page down. | |
Move caret one page down extending selection to new caret position. | |
Move caret one page down, extending rectangular selection to new caret position. | |
Move caret one page up. | |
Move caret one page up extending selection to new caret position. | |
Move caret one page up, extending rectangular selection to new caret position. | |
Move caret between paragraphs (delimited by empty lines). | |
ParaDownExtend(self)
| |
ParaUp(self)
| |
ParaUpExtend(self)
| |
Paste the contents of the clipboard into the document replacing the selection. | |
Point |
Retrieve the point in the window where a position is displayed. |
int |
Given a valid document position, return the next position taking code page into account. |
int |
Given a valid document position, return the previous position taking code page into account. |
int |
Retrieve the position at the start of a line. |
int |
Find the position from a point within the window. |
int |
Find the position from a point within the window but return INVALID_POSITION if not close to text. |
Redoes the next action on the undo history. | |
Register an image for use in autocompletion lists. | |
Release a reference to the document, deleting document if it fades to black. | |
Replace the selected text with the argument text. | |
int |
Replace the target text with the argument text. |
int |
Replace the target text with the argument text after d processing. |
bool |
Write the contents of the editor to filename |
Scroll enough to make the given column visible | |
Scroll enough to make the given line visible. | |
Sets the current caret position to be the search anchor. | |
int |
Search for a counted string in the target and set the target to the found range. |
int |
Find some text starting at the search anchor. |
int |
Find some text starting at the search anchor and moving backwards. |
Select all the text in the document. | |
Duplicate the selection. | |
bool |
Is the selection rectangular? The alternative is the more common stream selection. |
long |
Send a message to Scintilla. |
Set the selection anchor to a position. | |
Sets whether a backspace pressed when caret is within indentation unindents. | |
If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker. | |
Set the foreground colour of the caret. | |
Set the colour of the background of the line containing the caret. | |
Set background alpha of the caret line. | |
Set the colour of the background of the line containing the caret. | |
Display the background of the line containing the caret in a different colour. | |
Get the time in milliseconds that the caret is on and off. | |
Stop the caret preferred x position changing when the user types. | |
Set the width of the insert mode caret. | |
Reset the set of characters for whitespace and word characters to the defaults. | |
Set the code page used to interpret the bytes of the document as characters. | |
Change the way control characters are displayed: If symbol is < 32, keep the drawn way, else, use the given character. | |
Sets the position of the caret. | |
Change the document object used. | |
Change the colour used in edge indication. | |
Set the column number of the edge. | |
The edge may be displayed by a line (EDGE_LINE) or by highlighting text that goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). | |
Sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default). | |
Set the current end of line mode. | |
Show the children of a header line. | |
Set some style options for folding. | |
Set the fold level of a line. | |
Set the colours used as a chequerboard pattern in the fold margin | |
SetFoldMarginHiColour(self,
useSetting,
fore)
| |
Set the highlighted indentation guide column. | |
Set a back colour for active hotspots. | |
Set a fore colour for active hotspots. | |
Enable / Disable underlining active hotspots. | |
Limit hotspots to single line so hotspots on two lines don't merge. | |
Set the horizontal scrollbar to use instead of the ont that's built-in. | |
Set the number of spaces used for one level of indentation. | |
Show or hide indentation guides. | |
Set up the key words used by the lexer. | |
SetLastKeydownProcessed(self,
val)
| |
Sets the degree of caching of layout information. | |
Set the lexing language of the document. | |
Set the lexing language of the document based on string name. | |
Change the indentation of a line to a number of columns. | |
Used to hold extra styling information for each line. | |
Sets the size in pixels of the left margin. | |
Set a mask that determines which markers are displayed in a margin. | |
Sets the size in pixels of the right margin. | |
Set the left and right margin in the edit area, measured in pixels. | |
Make a margin sensitive or insensitive to mouse clicks. | |
Set a margin to be either numeric or symbolic. | |
Set the width of a margin to a width expressed in pixels. | |
Set which document modification events are sent to the container. | |
Set whether the mouse is captured when its button is pressed. | |
Sets the time the mouse must sit still to generate a mouse dwell event. | |
Set to overtype (true) or insert mode. | |
Enable/Disable convert-on-paste for line endings | |
Modify colours when printing for clearer printed text. | |
Sets the print magnification added to the point size of each style for printing. | |
Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). | |
Set up a value that may be used by a lexer for some optional feature. | |
Set to read only or read write. | |
Remember the current position in the undo history as the position at which the document was saved. | |
Sets the document width assumed for scrolling. | |
Set the search flags used by SearchInTarget. | |
Set the alpha of the selection. | |
Set the background colour of the selection and whether to use this setting. | |
Select a range of text. | |
Sets the position that ends the selection - this becomes the currentPosition. | |
Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or by lines (SC_SEL_LINES). | |
Sets the position that starts the selection - this becomes the anchor. | |
Set the foreground colour of the selection and whether to use this setting. | |
Change error status - 0 = OK. | |
Sets the cursor to one of the SC_CURSOR* values. | |
Change internal focus flag. | |
Divide each styling byte into lexical class bits (default: 5) and indicator bits (default: 3). | |
Set the styles for a segment of the document. | |
Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment. | |
Sets whether a tab pressed when caret is within indentation indents. | |
Change the visible size of a tab to be a multiple of the width of a space character. | |
Sets the position that ends the target which is used for updating the document without affecting the scroll position. | |
Sets the position that starts the target which is used for updating the document without affecting the scroll position. | |
Replace the contents of the document with the argument text. | |
Replace the contents of the document with the argument text. | |
Replace the contents of the document with the UTF8 text given. | |
In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground. | |
Choose between collecting actions into the undo history and discarding them. | |
Specify whether anti-aliased fonts should be used. | |
Show or hide the horizontal scroll bar. | |
Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces. | |
Show or hide the vertical scroll bar. | |
Make the end of line characters visible or invisible. | |
Make white space characters invisible, always visible or visible outside indentation. | |
Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc. | |
Set the vertical scrollbar to use instead of the one that's built-in. | |
Set the background colour of all whitespace and whether to use this setting. | |
Set the set of characters making up whitespace for when moving or selecting by word. | |
Set the foreground colour of all whitespace and whether to use this setting. | |
Set the set of characters making up words for when moving or selecting by word. | |
Sets whether text is word wrapped. | |
Set the start indent for wrapped lines. | |
Set the display mode of visual flags for wrapped lines. | |
Set the location of visual flags for wrapped lines. | |
Set the way the caret is kept visible when going sideway. | |
Get and Set the xOffset (ie, horizonal scroll position). | |
Set the way the line the caret is on is kept visible. | |
Set the zoom level. | |
Make a range of lines visible. | |
Start notifying the container of all key presses and commands. | |
Set the current styling position to pos and the styling mask to mask. | |
Stop notifying the container of all key presses and commands. | |
Move caret to bottom of page, or one page down if already at bottom of page. | |
Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. | |
Move caret to top of page, or one page up if already at top of page. | |
Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. | |
Clear all the styles and make equivalent to the global default style. | |
Reset the default style to its state at startup | |
Set the background colour of a style. | |
Set a style to be bold or not. | |
Set a style to be mixed case, or to force upper or lower case. | |
Set a style to be changeable or not (read only). | |
Set the character set of the font in a style. | |
Set a style to have its end of line filled or not. | |
Set the font of a style. | |
Set style size, face, bold, italic, and underline attributes from the attributes of a wx.Font . | |
Set all font style attributes at once. | |
Set the font encoding to be used by a style. | |
Set the foreground colour of a style. | |
Set a style to be a hotspot or not. | |
Set a style to be italic or not. | |
Set the size of characters of a style. | |
Extract style settings from a spec-string which is composed of one or more of the following comma separated elements: | |
Set a style to be underlined or not. | |
Set a style to be visible or not. | |
If selection is empty or all on one line replace the selection with a tab character. | |
Make the target range start and end be the same as the selection range start and end. | |
int |
Retrieve the height of a particular line of text in pixels. |
int |
Measure the pixel width of some text in a particular style. |
Switch between sticky and non-sticky: meant to be bound to a key. | |
Switch a header line between expanded and contracted. | |
Undo one action in the undo history. | |
Transform the selection to upper case. | |
Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button. | |
Display a list of strings and send notification when user chooses one. | |
Move caret to before first visible character on line. | |
Like VCHome but extending selection to new caret position. | |
Move caret to before first visible character on line. | |
VCHomeWrap(self)
| |
VCHomeWrapExtend(self)
| |
int |
Find the display line of a document line taking hidden lines into account. |
int |
Get position of end of word. |
Move caret left one word. | |
Move caret left one word, position cursor at end of word. | |
Move caret left one word, position cursor at end of word, extending selection to new caret position. | |
Move caret left one word extending selection to new caret position. | |
Move to the previous change in capitalisation. | |
Move to the previous change in capitalisation extending selection to new caret position. | |
Move to the change next in capitalisation. | |
Move to the next change in capitalisation extending selection to new caret position. | |
Move caret right one word. | |
Move caret right one word, position cursor at end of word. | |
Move caret right one word, position cursor at end of word, extending selection to new caret position. | |
Move caret right one word extending selection to new caret position. | |
int |
Get position of start of word. |
int |
The number of display lines needed to wrap a document line |
Magnify the displayed text by increasing the sizes by 1 point. | |
Make the displayed text smaller by decreasing the sizes by 1 point. |
Instance Method Details |
---|
__init__(self,
parent,
id=ID_ANY,
pos=DefaultPosition,
size=DefaultSize,
style=0,
name=STCNameStr)
|
AddRefDocument(self, docPointer)Extend life of document.
|
AddStyledText(self, data)Add array of cells to document.
|
AddText(self, text)Add text to the document at current position.
|
AddTextRaw(self, text)Add text to the document at current position. The text should be utf-8 encoded on unicode builds of wxPython, or can be any 8-bit text in ansi builds.
|
AddTextUTF8(self, text)Add UTF8 encoded text to the document at the current position. Works 'natively' in a unicode build of wxPython, and will also work in an ansi build if the UTF8 text is compatible with the current encoding. |
Allocate(self, bytes)Enlarge the document to a particular size of text bytes.
|
AppendText(self, text)Append a string to the end of the document without changing the selection.
|
AppendTextRaw(self, text)Append a string to the end of the document without changing the selection. The text should be utf-8 encoded on unicode builds of wxPython, or can be any 8-bit text in ansi builds.
|
AppendTextUTF8(self, text)Append a UTF8 string to the end of the document without changing the selection. Works 'natively' in a unicode build of wxPython, and will also work in an ansi build if the UTF8 text is compatible with the current encoding. |
AutoCompActive(self)Is there an auto-completion list visible?
|
AutoCompCancel(self)Remove the auto-completion list from the screen. |
AutoCompComplete(self)User has selected an item so remove the list and insert the selection. |
AutoCompGetAutoHide(self)Retrieve whether or not autocompletion is hidden automatically when nothing matches.
|
AutoCompGetCancelAtStart(self)Retrieve whether auto-completion cancelled by backspacing before start.
|
AutoCompGetChooseSingle(self)Retrieve whether a single item auto-completion list automatically choose the item.
|
AutoCompGetCurrent(self)Get currently selected item position in the auto-completion list
|
AutoCompGetDropRestOfWord(self)Retrieve whether or not autocompletion deletes any word characters after the inserted text upon completion.
|
AutoCompGetIgnoreCase(self)Retrieve state of ignore case flag.
|
AutoCompGetMaxHeight(self)Set the maximum height, in rows, of auto-completion and user lists.
|
AutoCompGetMaxWidth(self)Get the maximum width, in characters, of auto-completion and user lists.
|
AutoCompGetSeparator(self)Retrieve the auto-completion list separator character.
|
AutoCompGetTypeSeparator(self)Retrieve the auto-completion list type-separator character.
|
AutoCompPosStart(self)Retrieve the position of the caret when the auto-completion list was displayed.
|
AutoCompSelect(self, text)Select the item in the auto-completion list that starts with a string.
|
AutoCompSetAutoHide(self, autoHide)Set whether or not autocompletion is hidden automatically when nothing matches.
|
AutoCompSetCancelAtStart(self, cancel)Should the auto-completion list be cancelled if the user backspaces to a position before where the box was created.
|
AutoCompSetChooseSingle(self, chooseSingle)Should a single item auto-completion list automatically choose the item.
|
AutoCompSetDropRestOfWord(self, dropRestOfWord)Set whether or not autocompletion deletes any word characters after the inserted text upon completion.
|
AutoCompSetFillUps(self, characterSet)Define a set of characters that when typed will cause the autocompletion to choose the selected item.
|
AutoCompSetIgnoreCase(self, ignoreCase)Set whether case is significant when performing auto-completion searches.
|
AutoCompSetMaxHeight(self, rowCount)Set the maximum height, in rows, of auto-completion and user lists. The default is 5 rows.
|
AutoCompSetMaxWidth(self, characterCount)Set the maximum width, in characters, of auto-completion and user lists. Set to 0 to autosize to fit longest item, which is the default.
|
AutoCompSetSeparator(self, separatorCharacter)Change the separator character in the string setting up an auto-completion list. Default is space but can be changed if items contain space.
|
AutoCompSetTypeSeparator(self, separatorCharacter)Change the type-separator character in the string setting up an auto-completion list. Default is '?' but can be changed if items contain '?'.
|
AutoCompShow(self, lenEntered, itemList)Display a auto-completion list. The lenEntered parameter indicates how many characters before the caret should be used to provide context.
|
AutoCompStops(self, characterSet)Define a set of character that when typed cancel the auto-completion list.
|
BackTab(self)Dedent the selected lines. |
BeginUndoAction(self)Start a sequence of actions that is undone and redone as a unit. May be nested. |
BraceBadLight(self, pos)Highlight the character at a position indicating there is no matching brace.
|
BraceHighlight(self, pos1, pos2)Highlight the characters at two positions.
|
BraceMatch(self, pos)Find the position of a matching brace or INVALID_POSITION if no match.
|
CallTipActive(self)Is there an active call tip?
|
CallTipCancel(self)Remove the call tip from the screen. |
CallTipPosAtStart(self)Retrieve the position where the caret was before displaying the call tip.
|
CallTipSetBackground(self, back)Set the background colour for the call tip.
|
CallTipSetForeground(self, fore)Set the foreground colour for the call tip.
|
CallTipSetForegroundHighlight(self, fore)Set the foreground colour for the highlighted part of the call tip.
|
CallTipSetHighlight(self, start, end)Highlight a segment of the definition.
|
CallTipShow(self, pos, definition)Show a call tip containing a definition near position pos.
|
CallTipUseStyle(self, tabSize)Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
|
Cancel(self)Cancel any modes such as call tip or auto-completion list display. |
CanPaste(self)Will a paste succeed?
|
CanRedo(self)Are there any redoable actions in the undo history?
|
CanUndo(self)Are there any undoable actions in the undo history?
|
CharLeft(self)Move caret left one character. |
CharLeftExtend(self)Move caret left one character extending selection to new caret position. |
CharLeftRectExtend(self)Move caret left one character, extending rectangular selection to new caret position. |
CharRight(self)Move caret right one character. |
CharRightExtend(self)Move caret right one character extending selection to new caret position. |
CharRightRectExtend(self)Move caret right one character, extending rectangular selection to new caret position. |
ChooseCaretX(self)Set the last x chosen value to be the caret x position. |
Clear(self)Clear the selection. |
ClearAll(self)Delete all text in the document. |
ClearDocumentStyle(self)Set all style bytes to 0, remove all folding information. |
ClearRegisteredImages(self)Clear all the registered images. |
CmdKeyAssign(self, key, modifiers, cmd)When key+modifier combination km is pressed perform msg.
|
CmdKeyClear(self, key, modifiers)When key+modifier combination km is pressed do nothing.
|
CmdKeyClearAll(self)Drop all key mappings. |
CmdKeyExecute(self, cmd)Perform one of the operations defined by the wx.stc.STC_CMD_* constants.
|
Colourise(self, start, end)Colourise a segment of the document using the current lexing language.
|
ConvertEOLs(self, eolMode)Convert all line endings in the document to one mode.
|
Copy(self)Copy the selection to the clipboard. |
CopyRange(self, start, end)Copy a range of text to the clipboard. Positions are clipped into the document.
|
CopyText(self, length, text)Copy argument text to the clipboard.
|
Create(self, parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, name=wxSTCNameStr)Do the 2nd phase and create the GUI control.
|
CreateDocument(self)Create a new document object. Starts with reference count of 1 and not selected into editor.
|
Cut(self)Cut the selection to the clipboard. |
DeleteBack(self)Delete the selection or if no selection, the character before the caret. |
DeleteBackNotLine(self)Delete the selection or if no selection, the character before the caret. Will not delete the character before at the start of a line. |
DelLineLeft(self)Delete back from the current position to the start of the line. |
DelLineRight(self)Delete forwards from the current position to the end of the line. |
DelWordLeft(self)Delete the word to the left of the caret. |
DelWordRight(self)Delete the word to the right of the caret. |
DocLineFromVisible(self, lineDisplay)Find the document line of a display line taking hidden lines into account.
|
DocumentEnd(self)Move caret to last position in document. |
DocumentEndExtend(self)Move caret to last position in document extending selection to new caret position. |
DocumentStart(self)Move caret to first position in document. |
DocumentStartExtend(self)Move caret to first position in document extending selection to new caret position. |
DoDragOver(self, x, y, def)Allow for simulating a DnD DragOver.
|
DoDropText(self, x, y, data)Allow for simulating a DnD DropText.
|
EditToggleOvertype(self)Switch from insert to overtype mode or the reverse. |
EmptyUndoBuffer(self)Delete the undo history. |
EndUndoAction(self)End a sequence of actions that is undone and redone as a unit. |
EnsureCaretVisible(self)Ensure the caret is visible. |
EnsureVisible(self, line)Ensure a particular line is visible by expanding any header line hiding it.
|
EnsureVisibleEnforcePolicy(self, line)Ensure a particular line is visible by expanding any header line hiding it. Use the currently set visibility policy to determine which range to display.
|
FindColumn(self, line, column)Find the position of a column on a line taking into account tabs and multi-byte characters. If beyond end of line, return line end position.
|
FindText(self, minPos, maxPos, text, flags=0)Find some text in the document.
|
FormatRange(self, doDraw, startPos, endPos, draw, target, renderRect, pageRect)On Windows, will draw the document into a display context such as a printer.
|
FormFeed(self)Insert a Form Feed character. |
GetAnchor(self)Returns the position of the opposite end of the selection to the caret.
|
GetBackSpaceUnIndents(self)Does a backspace pressed when caret is within indentation unindent?
|
GetBufferedDraw(self)Is drawing done first into a buffer or direct to the screen?
|
GetCaretForeground(self)Get the foreground colour of the caret.
|
GetCaretLineBack(self)Get the colour of the background of the line containing the caret.
|
GetCaretLineBackAlpha(self)Get the background alpha of the caret line.
|
GetCaretLineBackground(self)Get the colour of the background of the line containing the caret.
|
GetCaretLineVisible(self)Is the background of the line containing the caret in a different colour?
|
GetCaretPeriod(self)Get the time in milliseconds that the caret is on and off.
|
GetCaretSticky(self)Can the caret preferred x position only be changed by explicit movement commands?
|
GetCaretWidth(self)Returns the width of the insert mode caret.
|
GetCharAt(self, pos)Returns the character byte at the position.
|
GetCodePage(self)Get the code page used to interpret the bytes of the document as characters.
|
GetColumn(self, pos)Retrieve the column number of a position, taking tab width into account.
|
GetControlCharSymbol(self)Get the way control characters are displayed.
|
GetCurLine(self)Retrieve the text of the line containing the caret, and also theindex of the caret on the line.
|
GetCurLineRaw()Retrieve the text of the line containing the caret, and also the index of the caret on the line. The returned value is a utf-8 encoded string in unicode builds of wxPython, or raw 8-bit text otherwise.
|
GetCurLineUTF8(self)Retrieve the UTF8 text of the line containing the caret, and also the index of the caret on the line. In an ansi build of wxPython the text retrieved from the document is assumed to be in the current default encoding. |
GetCurrentLine(self)Returns the line number of the line with the caret.
|
GetCurrentPos(self)Returns the position of the caret.
|
GetDocPointer(self)Retrieve a pointer to the document object.
|
GetEdgeColour(self)Retrieve the colour used in edge indication.
|
GetEdgeColumn(self)Retrieve the column number which text should be kept within.
|
GetEdgeMode(self)Retrieve the edge highlight mode.
|
GetEndAtLastLine(self)Retrieve whether the maximum scroll position has the last line at the bottom of the view.
|
GetEndStyled(self)Retrieve the position of the last correctly styled character.
|
GetEOLMode(self)Retrieve the current end of line mode - one of CRLF, CR, or LF.
|
GetFirstVisibleLine(self)Retrieve the display line at the top of the display.
|
GetFoldExpanded(self, line)Is a header line expanded?
|
GetFoldLevel(self, line)Retrieve the fold level of a line.
|
GetFoldParent(self, line)Find the parent line of a child line.
|
GetHighlightGuide(self)Get the highlighted indentation guide column.
|
GetIndent(self)Retrieve indentation size.
|
GetIndentationGuides(self)Are the indentation guides visible?
|
GetLastChild(self, line, level)Find the last child line of a header line.
|
GetLayoutCache(self)Retrieve the degree of caching of layout information.
|
GetLength(self)Returns the number of characters in the document.
|
GetLexer(self)Retrieve the lexing language of the document.
|
GetLine(self, line)Retrieve the contents of a line.
|
GetLineCount(self)Returns the number of lines in the document. There is always at least one.
|
GetLineEndPosition(self, line)Get the position after the last visible characters on a line.
|
GetLineIndentation(self, line)Retrieve the number of columns that a line is indented.
|
GetLineIndentPosition(self, line)Retrieve the position before the first non indentation character on a line.
|
GetLineRaw(self, line)Retrieve the contents of a line. The returned value is a utf-8 encoded string in unicode builds of wxPython, or raw 8-bit text otherwise.
|
GetLineSelEndPosition(self, line)Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
|
GetLineSelStartPosition(self, line)Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
|
GetLineState(self, line)Retrieve the extra styling information for a line.
|
GetLineUTF8(self, line)Retrieve the contents of a line as UTF8. In an ansi build of wxPython the text retrieved from the document is assumed to be in the current default encoding. |
GetLineVisible(self, line)Is a line visible?
|
GetMarginLeft(self)Returns the size in pixels of the left margin.
|
GetMarginMask(self, margin)Retrieve the marker mask of a margin.
|
GetMarginRight(self)Returns the size in pixels of the right margin.
|
GetMarginSensitive(self, margin)Retrieve the mouse click sensitivity of a margin.
|
GetMarginType(self, margin)Retrieve the type of a margin.
|
GetMarginWidth(self, margin)Retrieve the width of a margin in pixels.
|
GetMaxLineState(self)Retrieve the last line number that has line state.
|
GetModEventMask(self)Get which document modification events are sent to the container.
|
GetModify(self)Is the document different from when it was last saved?
|
GetMouseDownCaptures(self)Get whether mouse gets captured.
|
GetMouseDwellTime(self)Retrieve the time the mouse must sit still to generate a mouse dwell event.
|
GetOvertype(self)Returns true if overtype mode is active otherwise false is returned.
|
GetPasteConvertEndings(self)Get convert-on-paste setting
|
GetPrintColourMode(self)Returns the print colour mode.
|
GetPrintMagnification(self)Returns the print magnification.
|
GetPrintWrapMode(self)Is printing line wrapped?
|
GetProperty(self, key)Retrieve a 'property' value previously set with SetProperty.
|
GetPropertyExpanded(self, key)Retrieve a 'property' value previously set with SetProperty, with '$()' variable replacement on returned buffer.
|
GetPropertyInt(self, key)Retrieve a 'property' value previously set with SetProperty, interpreted as an int AFTER any '$()' variable replacement.
|
GetReadOnly(self)In read-only mode?
|
GetScrollWidth(self)Retrieve the document width assumed for scrolling.
|
GetSearchFlags(self)Get the search flags used by SearchInTarget.
|
GetSelAlpha(self)Get the alpha of the selection.
|
GetSelectedText(self)Retrieve the selected text.
|
GetSelectedTextRaw(self)Retrieve the selected text. The returned value is a utf-8 encoded string in unicode builds of wxPython, or raw 8-bit text otherwise.
|
GetSelectedTextUTF8(self)Retrieve the selected text as UTF8. In an ansi build of wxPython the text retrieved from the document is assumed to be in the current default encoding. |
GetSelection(self)Retrieve the start and end positions of the current selection.
|
GetSelectionEnd(self)Returns the position at the end of the selection.
|
GetSelectionMode(self)Get the mode of the current selection.
|
GetSelectionStart(self)Returns the position at the start of the selection.
|
GetStatus(self)Get error status.
|
GetSTCCursor(self)Get cursor type.
|
GetSTCFocus(self)Get internal focus flag.
|
GetStyleAt(self, pos)Returns the style byte at the position.
|
GetStyleBits(self)Retrieve number of bits in style bytes used to hold the lexical state.
|
GetStyleBitsNeeded(self)Retrieve the number of bits the current lexer needs for styling.
|
GetStyledText(self, startPos, endPos)Retrieve a buffer of cells.
|
GetTabIndents(self)Does a tab pressed when caret is within indentation indent?
|
GetTabWidth(self)Retrieve the visible size of a tab.
|
GetTargetEnd(self)Get the position that ends the target.
|
GetTargetStart(self)Get the position that starts the target.
|
GetText(self)Retrieve all the text in the document.
|
GetTextLength(self)Retrieve the number of characters in the document.
|
GetTextRange(self, startPos, endPos)Retrieve a range of text.
|
GetTextRangeRaw(self, startPos, endPos)Retrieve a range of text. The returned value is a utf-8 encoded string in unicode builds of wxPython, or raw 8-bit text otherwise.
|
GetTextRangeUTF8(self, startPos, endPos)Retrieve a range of text as UTF8. In an ansi build of wxPython the text retrieved from the document is assumed to be in the current default encoding. |
GetTextRaw(self)Retrieve all the text in the document. The returned value is a utf-8 encoded string in unicode builds of wxPython, or raw 8-bit text otherwise.
|
GetTextUTF8(self)Retrieve all the text in the document as UTF8. In an ansi build of wxPython the text retrieved from the document is assumed to be in the current default encoding. |
GetTwoPhaseDraw(self)Is drawing done in two phases with backgrounds drawn before foregrounds?
|
GetUndoCollection(self)Is undo history being collected?
|
GetUseAntiAliasing(self)Returns the current UseAntiAliasing setting.
|
GetUseHorizontalScrollBar(self)Is the horizontal scroll bar visible?
|
GetUseTabs(self)Retrieve whether tabs will be used in indentation.
|
GetUseVerticalScrollBar(self)Is the vertical scroll bar visible?
|
GetViewEOL(self)Are the end of line characters visible?
|
GetViewWhiteSpace(self)Are white space characters currently visible? Returns one of SCWS_* constants.
|
GetWrapMode(self)Retrieve whether text is word wrapped.
|
GetWrapStartIndent(self)Retrive the start indent for wrapped lines.
|
GetWrapVisualFlags(self)Retrive the display mode of visual flags for wrapped lines.
|
GetWrapVisualFlagsLocation(self)Retrive the location of visual flags for wrapped lines.
|
GetZoom(self)Retrieve the zoom level.
|
GotoLine(self, line)Set caret to start of a line and ensure it is visible.
|
GotoPos(self, pos)Set caret to a position and ensure it is visible.
|
HideLines(self, lineStart, lineEnd)Make a range of lines invisible.
|
HideSelection(self, normal)Draw the selection in normal style or with selection highlighted.
|
Home(self)Move caret to first position on line. |
HomeDisplay(self)Move caret to first position on display line. |
HomeDisplayExtend(self)Move caret to first position on display line extending selection to new caret position. |
HomeExtend(self)Move caret to first position on line extending selection to new caret position. |
HomeRectExtend(self)Move caret to first position on line, extending rectangular selection to new caret position. |
HomeWrap(self)These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? except they behave differently when word-wrap is enabled: They go first to the start / end of the display line, like (Home|LineEnd)Display The difference is that, the cursor is already at the point, it goes on to the start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. |
IndicatorGetForeground(self, indic)Retrieve the foreground colour of an indicator.
|
IndicatorGetStyle(self, indic)Retrieve the style of an indicator.
|
IndicatorSetForeground(self, indic, fore)Set the foreground colour of an indicator.
|
IndicatorSetStyle(self, indic, style)Set an indicator to plain, squiggle or TT.
|
InsertText(self, pos, text)Insert string at a position.
|
InsertTextRaw(self, pos, text)Insert string at a position. The text should be utf-8 encoded on unicode builds of wxPython, or can be any 8-bit text in ansi builds.
|
InsertTextUTF8(self, pos, text)Insert UTF8 encoded text at a position. Works 'natively' in a unicode build of wxPython, and will also work in an ansi build if the UTF8 text is compatible with the current encoding. |
LineCopy(self)Copy the line containing the caret. |
LineCut(self)Cut the line containing the caret. |
LineDelete(self)Delete the line containing the caret. |
LineDown(self)Move caret down one line.
|
LineDownExtend(self)Move caret down one line extending selection to new caret position. |
LineDownRectExtend(self)Move caret down one line, extending rectangular selection to new caret position. |
LineDuplicate(self)Duplicate the current line. |
LineEnd(self)Move caret to last position on line. |
LineEndDisplay(self)Move caret to last position on display line. |
LineEndDisplayExtend(self)Move caret to last position on display line extending selection to new caret position. |
LineEndExtend(self)Move caret to last position on line extending selection to new caret position. |
LineEndRectExtend(self)Move caret to last position on line, extending rectangular selection to new caret position. |
LineFromPosition(self, pos)Retrieve the line containing a position.
|
LineLength(self, line)How many characters are on a line, not including end of line characters?
|
LineScroll(self, columns, lines)Scroll horizontally and vertically.
|
LineScrollDown(self)Scroll the document down, keeping the caret visible. |
LineScrollUp(self)Scroll the document up, keeping the caret visible. |
LinesJoin(self)Join the lines in the target. |
LinesOnScreen(self)Retrieves the number of lines completely visible.
|
LinesSplit(self, pixelWidth)Split the lines in the target into lines that are less wide than pixelWidth where possible.
|
LineTranspose(self)Switch the current line with the previous. |
LineUp(self)Move caret up one line.
|
LineUpExtend(self)Move caret up one line extending selection to new caret position. |
LineUpRectExtend(self)Move caret up one line, extending rectangular selection to new caret position. |
LoadFile(self, filename)Load the contents of filename into the editor
|
LowerCase(self)Transform the selection to lower case. |
MarkerAdd(self, line, markerNumber)Add a marker to a line, returning an ID which can be used to find or delete the marker.
|
MarkerAddSet(self, line, set)Add a set of markers to a line.
|
MarkerDefine(self, markerNumber, markerSymbol, foreground=wxNullColour, background=wxNullColour)Set the symbol used for a particular marker number, and optionally the fore and background colours.
|
MarkerDefineBitmap(self, markerNumber, bmp)Define a marker from a bitmap
|
MarkerDelete(self, line, markerNumber)Delete a marker from a line.
|
MarkerDeleteAll(self, markerNumber)Delete all markers with a particular number from all lines.
|
MarkerDeleteHandle(self, handle)Delete a marker.
|
MarkerGet(self, line)Get a bit mask of all the markers set on a line.
|
MarkerLineFromHandle(self, handle)Retrieve the line number at which a particular marker is located.
|
MarkerNext(self, lineStart, markerMask)Find the next line after lineStart that includes a marker in mask.
|
MarkerPrevious(self, lineStart, markerMask)Find the previous line before lineStart that includes a marker in mask.
|
MarkerSetAlpha(self, markerNumber, alpha)Set the alpha used for a marker that is drawn in the text area, not the margin.
|
MarkerSetBackground(self, markerNumber, back)Set the background colour used for a particular marker number.
|
MarkerSetForeground(self, markerNumber, fore)Set the foreground colour used for a particular marker number.
|
MoveCaretInsideView(self)Move the caret inside current view if it's not there already. |
NewLine(self)Insert a new line, may use a CRLF, CR or LF depending on EOL mode. |
PageDown(self)Move caret one page down.
|
PageDownExtend(self)Move caret one page down extending selection to new caret position. |
PageDownRectExtend(self)Move caret one page down, extending rectangular selection to new caret position. |
PageUp(self)Move caret one page up.
|
PageUpExtend(self)Move caret one page up extending selection to new caret position. |
PageUpRectExtend(self)Move caret one page up, extending rectangular selection to new caret position. |
ParaDown(self)Move caret between paragraphs (delimited by empty lines). |
Paste(self)Paste the contents of the clipboard into the document replacing the selection. |
PointFromPosition(self, pos)Retrieve the point in the window where a position is displayed.
|
PositionAfter(self, pos)Given a valid document position, return the next position taking code page into account. Maximum value returned is the last position in the document.
|
PositionBefore(self, pos)Given a valid document position, return the previous position taking code page into account. Returns 0 if passed 0.
|
PositionFromLine(self, line)Retrieve the position at the start of a line.
|
PositionFromPoint(self, pt)Find the position from a point within the window.
|
PositionFromPointClose(self, x, y)Find the position from a point within the window but return INVALID_POSITION if not close to text.
|
Redo(self)Redoes the next action on the undo history. |
RegisterImage(self, type, bmp)Register an image for use in autocompletion lists.
|
ReleaseDocument(self, docPointer)Release a reference to the document, deleting document if it fades to black.
|
ReplaceSelection(self, text)Replace the selected text with the argument text.
|
ReplaceTarget(self, text)Replace the target text with the argument text. Text is counted so it can contain NULs. Returns the length of the replacement text.
|
ReplaceTargetRE(self, text)Replace the target text with the argument text after d processing. Text is counted so it can contain NULs. Looks for d where d is between 1 and 9 and replaces these with the strings matched in the last search operation which were surrounded by ( and ). Returns the length of the replacement text including any change caused by processing the d patterns.
|
SaveFile(self, filename)Write the contents of the editor to filename
|
ScrollToColumn(self, column)Scroll enough to make the given column visible
|
ScrollToLine(self, line)Scroll enough to make the given line visible.
|
SearchAnchor(self)Sets the current caret position to be the search anchor. |
SearchInTarget(self, text)Search for a counted string in the target and set the target to the found range. Text is counted so it can contain NULs. Returns length of range or -1 for failure in which case target is not moved.
|
SearchNext(self, flags, text)Find some text starting at the search anchor. Does not ensure the selection is visible.
|
SearchPrev(self, flags, text)Find some text starting at the search anchor and moving backwards. Does not ensure the selection is visible.
|
SelectAll(self)Select all the text in the document. |
SelectionDuplicate(self)Duplicate the selection. If selection empty duplicate the line containing the caret. |
SelectionIsRectangle(self)Is the selection rectangular? The alternative is the more common stream selection.
|
SendMsg(self, msg, wp=0, lp=0)Send a message to Scintilla.
|
SetAnchor(self, posAnchor)Set the selection anchor to a position. The anchor is the opposite end of the selection from the caret.
|
SetBackSpaceUnIndents(self, bsUnIndents)Sets whether a backspace pressed when caret is within indentation unindents.
|
SetBufferedDraw(self, buffered)If drawing is buffered then each line of text is drawn into a bitmap buffer before drawing it to the screen to avoid flicker.
|
SetCaretForeground(self, fore)Set the foreground colour of the caret.
|
SetCaretLineBack(self, back)Set the colour of the background of the line containing the caret.
|
SetCaretLineBackAlpha(self, alpha)Set background alpha of the caret line.
|
SetCaretLineBackground(self, back)Set the colour of the background of the line containing the caret.
|
SetCaretLineVisible(self, show)Display the background of the line containing the caret in a different colour.
|
SetCaretPeriod(self, periodMilliseconds)Get the time in milliseconds that the caret is on and off. 0 = steady on.
|
SetCaretSticky(self, useCaretStickyBehaviour)Stop the caret preferred x position changing when the user types.
|
SetCaretWidth(self, pixelWidth)Set the width of the insert mode caret.
|
SetCharsDefault(self)Reset the set of characters for whitespace and word characters to the defaults. |
SetCodePage(self, codePage)Set the code page used to interpret the bytes of the document as characters.
|
SetControlCharSymbol(self, symbol)Change the way control characters are displayed: If symbol is < 32, keep the drawn way, else, use the given character.
|
SetCurrentPos(self, pos)Sets the position of the caret.
|
SetDocPointer(self, docPointer)Change the document object used.
|
SetEdgeColour(self, edgeColour)Change the colour used in edge indication.
|
SetEdgeColumn(self, column)Set the column number of the edge. If text goes past the edge then it is highlighted.
|
SetEdgeMode(self, mode)The edge may be displayed by a line (EDGE_LINE) or by highlighting text that goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
|
SetEndAtLastLine(self, endAtLastLine)Sets the scroll range so that maximum scroll position has the last line at the bottom of the view (default). Setting this to false allows scrolling one page below the last line.
|
SetEOLMode(self, eolMode)Set the current end of line mode.
|
SetFoldExpanded(self, line, expanded)Show the children of a header line.
|
SetFoldFlags(self, flags)Set some style options for folding.
|
SetFoldLevel(self, line, level)Set the fold level of a line. This encodes an integer level along with flags indicating whether the line is a header and whether it is effectively white space.
|
SetFoldMarginColour(self, useSetting, back)Set the colours used as a chequerboard pattern in the fold margin
|
SetHighlightGuide(self, column)Set the highlighted indentation guide column. 0 = no highlighted guide.
|
SetHotspotActiveBackground(self, useSetting, back)Set a back colour for active hotspots.
|
SetHotspotActiveForeground(self, useSetting, fore)Set a fore colour for active hotspots.
|
SetHotspotActiveUnderline(self, underline)Enable / Disable underlining active hotspots.
|
SetHotspotSingleLine(self, singleLine)Limit hotspots to single line so hotspots on two lines don't merge.
|
SetHScrollBar(self, bar)Set the horizontal scrollbar to use instead of the ont that's built-in.
|
SetIndent(self, indentSize)Set the number of spaces used for one level of indentation.
|
SetIndentationGuides(self, show)Show or hide indentation guides.
|
SetKeyWords(self, keywordSet, keyWords)Set up the key words used by the lexer.
|
SetLayoutCache(self, mode)Sets the degree of caching of layout information.
|
SetLexer(self, lexer)Set the lexing language of the document.
|
SetLexerLanguage(self, language)Set the lexing language of the document based on string name.
|
SetLineIndentation(self, line, indentSize)Change the indentation of a line to a number of columns.
|
SetLineState(self, line, state)Used to hold extra styling information for each line.
|
SetMarginLeft(self, pixelWidth)Sets the size in pixels of the left margin.
|
SetMarginMask(self, margin, mask)Set a mask that determines which markers are displayed in a margin.
|
SetMarginRight(self, pixelWidth)Sets the size in pixels of the right margin.
|
SetMargins(self, left, right)Set the left and right margin in the edit area, measured in pixels.
|
SetMarginSensitive(self, margin, sensitive)Make a margin sensitive or insensitive to mouse clicks.
|
SetMarginType(self, margin, marginType)Set a margin to be either numeric or symbolic.
|
SetMarginWidth(self, margin, pixelWidth)Set the width of a margin to a width expressed in pixels.
|
SetModEventMask(self, mask)Set which document modification events are sent to the container.
|
SetMouseDownCaptures(self, captures)Set whether the mouse is captured when its button is pressed.
|
SetMouseDwellTime(self, periodMilliseconds)Sets the time the mouse must sit still to generate a mouse dwell event.
|
SetOvertype(self, overtype)Set to overtype (true) or insert mode.
|
SetPasteConvertEndings(self, convert)Enable/Disable convert-on-paste for line endings
|
SetPrintColourMode(self, mode)Modify colours when printing for clearer printed text.
|
SetPrintMagnification(self, magnification)Sets the print magnification added to the point size of each style for printing.
|
SetPrintWrapMode(self, mode)Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
|
SetProperty(self, key, value)Set up a value that may be used by a lexer for some optional feature.
|
SetReadOnly(self, readOnly)Set to read only or read write.
|
SetSavePoint(self)Remember the current position in the undo history as the position at which the document was saved. |
SetScrollWidth(self, pixelWidth)Sets the document width assumed for scrolling.
|
SetSearchFlags(self, flags)Set the search flags used by SearchInTarget.
|
SetSelAlpha(self, alpha)Set the alpha of the selection.
|
SetSelBackground(self, useSetting, back)Set the background colour of the selection and whether to use this setting.
|
SetSelection(self, start, end)Select a range of text.
|
SetSelectionEnd(self, pos)Sets the position that ends the selection - this becomes the currentPosition.
|
SetSelectionMode(self, mode)Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE) or by lines (SC_SEL_LINES).
|
SetSelectionStart(self, pos)Sets the position that starts the selection - this becomes the anchor.
|
SetSelForeground(self, useSetting, fore)Set the foreground colour of the selection and whether to use this setting.
|
SetStatus(self, statusCode)Change error status - 0 = OK.
|
SetSTCCursor(self, cursorType)Sets the cursor to one of the SC_CURSOR* values.
|
SetSTCFocus(self, focus)Change internal focus flag.
|
SetStyleBits(self, bits)Divide each styling byte into lexical class bits (default: 5) and indicator bits (default: 3). If a lexer requires more than 32 lexical states, then this is used to expand the possible states.
|
SetStyleBytes(self, length, styleBytes)Set the styles for a segment of the document.
|
SetStyling(self, length, style)Change style from current styling position for length characters to a style and move the current styling position to after this newly styled segment.
|
SetTabIndents(self, tabIndents)Sets whether a tab pressed when caret is within indentation indents.
|
SetTabWidth(self, tabWidth)Change the visible size of a tab to be a multiple of the width of a space character.
|
SetTargetEnd(self, pos)Sets the position that ends the target which is used for updating the document without affecting the scroll position.
|
SetTargetStart(self, pos)Sets the position that starts the target which is used for updating the document without affecting the scroll position.
|
SetText(self, text)Replace the contents of the document with the argument text.
|
SetTextRaw(self, text)Replace the contents of the document with the argument text. The text should be utf-8 encoded on unicode builds of wxPython, or can be any 8-bit text in ansi builds.
|
SetTextUTF8(self, text)Replace the contents of the document with the UTF8 text given. Works 'natively' in a unicode build of wxPython, and will also work in an ansi build if the UTF8 text is compatible with the current encoding. |
SetTwoPhaseDraw(self, twoPhase)In twoPhaseDraw mode, drawing is performed in two phases, first the background and then the foreground. This avoids chopping off characters that overlap the next run.
|
SetUndoCollection(self, collectUndo)Choose between collecting actions into the undo history and discarding them.
|
SetUseAntiAliasing(self, useAA)Specify whether anti-aliased fonts should be used. Will have no effect on some platforms, but on some (wxMac for example) can greatly improve performance.
|
SetUseHorizontalScrollBar(self, show)Show or hide the horizontal scroll bar.
|
SetUseTabs(self, useTabs)Indentation will only use space characters if useTabs is false, otherwise it will use a combination of tabs and spaces.
|
SetUseVerticalScrollBar(self, show)Show or hide the vertical scroll bar.
|
SetViewEOL(self, visible)Make the end of line characters visible or invisible.
|
SetViewWhiteSpace(self, viewWS)Make white space characters invisible, always visible or visible outside indentation.
|
SetVisiblePolicy(self, visiblePolicy, visibleSlop)Set the way the display area is determined when a particular line is to be moved to by Find, FindNext, GotoLine, etc.
|
SetVScrollBar(self, bar)Set the vertical scrollbar to use instead of the one that's built-in.
|
SetWhitespaceBackground(self, useSetting, back)Set the background colour of all whitespace and whether to use this setting.
|
SetWhitespaceChars(self, characters)Set the set of characters making up whitespace for when moving or selecting by word. Should be called after SetWordChars.
|
SetWhitespaceForeground(self, useSetting, fore)Set the foreground colour of all whitespace and whether to use this setting.
|
SetWordChars(self, characters)Set the set of characters making up words for when moving or selecting by word. First sets deaults like SetCharsDefault.
|
SetWrapMode(self, mode)Sets whether text is word wrapped.
|
SetWrapStartIndent(self, indent)Set the start indent for wrapped lines.
|
SetWrapVisualFlags(self, wrapVisualFlags)Set the display mode of visual flags for wrapped lines.
|
SetWrapVisualFlagsLocation(self, wrapVisualFlagsLocation)Set the location of visual flags for wrapped lines.
|
SetXCaretPolicy(self, caretPolicy, caretSlop)Set the way the caret is kept visible when going sideway. The exclusion zone is given in pixels.
|
SetXOffset(self, newOffset)Get and Set the xOffset (ie, horizonal scroll position).
|
SetYCaretPolicy(self, caretPolicy, caretSlop)Set the way the line the caret is on is kept visible. The exclusion zone is given in lines.
|
SetZoom(self, zoom)Set the zoom level. This number of points is added to the size of all fonts. It may be positive to magnify or negative to reduce.
|
ShowLines(self, lineStart, lineEnd)Make a range of lines visible.
|
StartRecord(self)Start notifying the container of all key presses and commands. |
StartStyling(self, pos, 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.
|
StopRecord(self)Stop notifying the container of all key presses and commands. |
StutteredPageDown(self)Move caret to bottom of page, or one page down if already at bottom of page. |
StutteredPageDownExtend(self)Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position. |
StutteredPageUp(self)Move caret to top of page, or one page up if already at top of page. |
StutteredPageUpExtend(self)Move caret to top of page, or one page up if already at top of page, extending selection to new caret position. |
StyleClearAll(self)Clear all the styles and make equivalent to the global default style. |
StyleResetDefault(self)Reset the default style to its state at startup |
StyleSetBackground(self, style, back)Set the background colour of a style.
|
StyleSetBold(self, style, bold)Set a style to be bold or not.
|
StyleSetCase(self, style, caseForce)Set a style to be mixed case, or to force upper or lower case.
|
StyleSetChangeable(self, style, changeable)Set a style to be changeable or not (read only). Experimental feature, currently buggy.
|
StyleSetCharacterSet(self, style, characterSet)Set the character set of the font in a style. Converts the Scintilla wx.stc.STC_CHARSET_* set values to a wxFontEncoding.
|
StyleSetEOLFilled(self, style, filled)Set a style to have its end of line filled or not.
|
StyleSetFaceName(self, style, fontName)Set the font of a style.
|
StyleSetFont(self, styleNum, font)Set style size, face, bold, italic, and underline attributes from the
attributes of a
|
StyleSetFontAttr(self, styleNum, size, faceName, bold, italic, underline, encoding=wxFONTENCODING_DEFAULT)Set all font style attributes at once.
|
StyleSetFontEncoding(self, style, encoding)Set the font encoding to be used by a style.
|
StyleSetForeground(self, style, fore)Set the foreground colour of a style.
|
StyleSetHotSpot(self, style, hotspot)Set a style to be a hotspot or not.
|
StyleSetItalic(self, style, italic)Set a style to be italic or not.
|
StyleSetSize(self, style, sizePoints)Set the size of characters of a style.
|
StyleSetSpec(self, styleNum, spec)Extract style settings from a spec-string which is composed of one or more of the following comma separated elements: bold turns on bold italic turns on italics fore:[name or #RRGGBB] sets the foreground colour back:[name or #RRGGBB] sets the background colour face:[facename] sets the font face name to use size:[num] sets the font size in points eol turns on eol filling underline turns on underlining
|
StyleSetUnderline(self, style, underline)Set a style to be underlined or not.
|
StyleSetVisible(self, style, visible)Set a style to be visible or not.
|
Tab(self)If selection is empty or all on one line replace the selection with a tab character. If more than one line selected, indent the lines. |
TargetFromSelection(self)Make the target range start and end be the same as the selection range start and end. |
TextHeight(self, line)Retrieve the height of a particular line of text in pixels.
|
TextWidth(self, style, text)Measure the pixel width of some text in a particular style. NUL terminated text argument. Does not handle tab or control characters.
|
ToggleCaretSticky(self)Switch between sticky and non-sticky: meant to be bound to a key. |
ToggleFold(self, line)Switch a header line between expanded and contracted.
|
Undo(self)Undo one action in the undo history. |
UpperCase(self)Transform the selection to upper case. |
UsePopUp(self, allowPopUp)Set whether a pop up menu is displayed automatically when the user presses the wrong mouse button.
|
UserListShow(self, listType, itemList)Display a list of strings and send notification when user chooses one.
|
VCHome(self)Move caret to before first visible character on line. If already there move to first character on line. |
VCHomeExtend(self)Like VCHome but extending selection to new caret position. |
VCHomeRectExtend(self)Move caret to before first visible character on line. If already there move to first character on line. In either case, extend rectangular selection to new caret position. |
VisibleFromDocLine(self, line)Find the display line of a document line taking hidden lines into account.
|
WordEndPosition(self, pos, onlyWordCharacters)Get position of end of word.
|
WordLeft(self)Move caret left one word. |
WordLeftEnd(self)Move caret left one word, position cursor at end of word. |
WordLeftEndExtend(self)Move caret left one word, position cursor at end of word, extending selection to new caret position. |
WordLeftExtend(self)Move caret left one word extending selection to new caret position. |
WordPartLeft(self)Move to the previous change in capitalisation. |
WordPartLeftExtend(self)Move to the previous change in capitalisation extending selection to new caret position. |
WordPartRight(self)Move to the change next in capitalisation. |
WordPartRightExtend(self)Move to the next change in capitalisation extending selection to new caret position. |
WordRight(self)Move caret right one word. |
WordRightEnd(self)Move caret right one word, position cursor at end of word. |
WordRightEndExtend(self)Move caret right one word, position cursor at end of word, extending selection to new caret position. |
WordRightExtend(self)Move caret right one word extending selection to new caret position. |
WordStartPosition(self, pos, onlyWordCharacters)Get position of start of word.
|
WrapCount(self, line)The number of display lines needed to wrap a document line
|
ZoomIn(self)Magnify the displayed text by increasing the sizes by 1 point. |
ZoomOut(self)Make the displayed text smaller by decreasing the sizes by 1 point. |
Property Details |
---|
Anchor |
BackSpaceUnIndentsSee
|
BufferedDrawSee
|
CaretForegroundSee
|
CaretLineBackSee
|
CaretLineBackAlphaSee
|
CaretLineBackgroundSee
|
CaretLineVisibleSee
|
CaretPeriodSee
|
CaretStickySee
|
CaretWidthSee
|
CodePageSee
|
ControlCharSymbolSee
|
CurLineSee
|
CurLineRawSee
|
CurLineUTF8See
|
CurrentLineSee
|
CurrentPosSee
|
DocPointerSee
|
EdgeColourSee
|
EdgeColumnSee
|
EdgeModeSee
|
EndAtLastLineSee
|
EndStyledSee
|
EOLModeSee
|
FirstVisibleLine
|
HighlightGuideSee
|
Indent |
IndentationGuidesSee
|
LastKeydownProcessedSee
|
LayoutCacheSee
|
LengthSee
|
Lexer |
LineCountSee
|
MarginLeftSee
|
MarginRightSee
|
MaxLineStateSee
|
ModEventMaskSee
|
ModifySee
|
MouseDownCapturesSee
|
MouseDwellTimeSee
|
OvertypeSee
|
PasteConvertEndingsSee
|
PrintColourModeSee
|
PrintMagnificationSee
|
PrintWrapModeSee
|
ReadOnlySee
|
ScrollWidthSee
|
SearchFlagsSee
|
SelAlphaSee
|
SelectedTextSee
|
SelectedTextRaw
|
SelectedTextUTF8
|
SelectionSee
|
SelectionEndSee
|
SelectionModeSee
|
SelectionStartSee
|
Status |
STCCursorSee
|
STCFocusSee
|
StyleBitsSee
|
StyleBitsNeeded
|
TabIndentsSee
|
TabWidthSee
|
TargetEndSee
|
TargetStartSee
|
Text |
TextLengthSee
|
TextRawSee
|
TextUTF8See
|
thisownThe membership flag
|
TwoPhaseDrawSee
|
UndoCollectionSee
|
UseAntiAliasingSee
|
UseHorizontalScrollBarSee
|
UseTabsSee
|
UseVerticalScrollBarSee
|
ViewEOLSee
|
ViewWhiteSpaceSee
|
WrapModeSee
|
WrapStartIndentSee
|
WrapVisualFlagsSee
|
WrapVisualFlagsLocationSee
|
XOffsetSee
|
Zoom |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:13:23 2007 | http://epydoc.sf.net |