Methods that a data source object must implement in order to be
compatible with the real STC used as the data source for text-based
files.
|
|
| AddRefDocument(self,
ptr) |
|
|
|
|
|
|
|
|
|
|
CanEdit(self)
PyPE compat to show read-only status |
|
|
|
|
|
|
|
|
|
|
CanSave(self)
Can this STC instance save its contents? |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| GetBinaryData(self,
start,
end) |
|
|
|
|
|
|
|
GetFoldLevel(self,
line)
Return fold level of specified line. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GotoPos(self,
pos)
Move the cursor to the specified position and scroll the position
into the view if necessary. |
|
|
|
|
| GuessBinary(self,
amount,
percentage) |
|
|
|
|
|
|
|
|
|
|
| ReleaseDocument(self,
ptr) |
|
|
|
|
|
|
|
|
|
|
|
|
|
getShortDisplayName(self,
url)
Return a short name for display in tabs or other context without
needing a pathname. |
|
|
|
|
open(self,
buffer,
message=None)
Read from the specified url to populate the STC. |
|
|
|
|
openSuccess(self,
buffer)
Called after a file has been successfully opened. |
|
|
|
|
prepareEncoding(self)
Convert the raw bytes in the file to the correct encoding before
writing. |
|
|
|
|
readFrom(self,
fh)
Read from filehandle, converting as necessary |
|
|
|
|
showStyle(self,
linenum=None)
Debugging routine to show the styling information on a line. |
|
|
|
|
writeTo(self,
fh)
Write to filehandle, converting as necessary |
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__init__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|