The selection is shown by changing the foreground and/or background colours. If one of these is not set then that attribute is not changed for the selection. The default is to show the selection by changing the background to light gray and leaving the foreground the same as when it was not selected. When there is no selection, the current insertion point is marked by the text caret. This is a vertical line that is normally blinking on and off to attract the users attention.
This method sets the style of the selection. You can pass a gtkscintilla.style.SelStyle instance or props keyword arguments. Available properties are:
Parameters: |
|
---|
Returns: | A gtkscintilla.style.SelStyle instance representing the current style settings. |
---|
Sets the caret appearance, the synopsis is like set_sel_style(), the style instance should be a gtkscintilla.style.CaretStyle instance. Available properties are:
Parameters: |
|
---|
Returns: | The relative gtkscintilla.style.CaretStyle instance. |
---|
Sets the line containing the caret appearance, the synopsis is like set_sel_style(), the style instance should be a gtkscintilla.style.CaretLineStyle instance. Available properties are:
Parameters: |
|
---|
Returns: | The relative gtkscintilla.style.CaretLineStyle instance. |
---|
Sets the hotspot “active” appearance, the synopsis is like set_sel_style(), the style instance should be a gtkscintilla.style.HotSpotActiveStyle instance. Available properties are:
Parameters: |
|
---|
Returns: | The relative gtkscintilla.style.HotSpotActiveStyle instance. |
---|
These classes are containers of the style information, they have the respective set of properties defined in the setter methods ( set_sel_style() etc...)
The constructor takes keyword argumets like the setter methods:
>>> st = SelStyle(color="red", background="black")
You can retrieve/modify the properties in this way:
>>> col = st.color
>>> st.background = "gray"