base classes — bpy_struct, ID
Text datablock referencing an external or packed text file
Index of current character in current line, and also start index of character in selection if one exists
Type : | int in [0, inf], default 0, (readonly) |
---|
Current line, and start line of selection if one exists
Type : | TextLine, (readonly, never None) |
---|
Index of current TextLine in TextLine collection
Type : | int in [-inf, inf], default 0 |
---|
Filename of the text file
Type : | string, default “”, (never None) |
---|
Text file has been edited since last save
Type : | boolean, default False, (readonly) |
---|
Text file is in memory, without a corresponding file on disk
Type : | boolean, default False, (readonly) |
---|
Text file on disk is different than the one in memory
Type : | boolean, default False, (readonly) |
---|
Lines of text
Type : | bpy_prop_collection of TextLine, (readonly) |
---|
Index of character after end of selection in the selection end line
Type : | int in [0, inf], default 0, (readonly) |
---|
Register this text as a module on loading, Text name must end with ”.py”
Type : | boolean, default False |
---|
Automatically converts all new tabs into spaces
Type : | boolean, default False |
---|
Logic bricks that use this text (readonly)
clear the text block
write text at the cursor location and advance to the end of the text block
Parameters: | text (string, (never None)) – New text for this datablock |
---|
Return the text as a string.
Replace text with this string.
Inherited Properties
Inherited Functions
References