Buffer class.
Create a Buffer instance. |
|
Add an editor. |
|
Return |
|
New empty buffer. |
|
Open file into buffer. |
|
Confirm overwriting an existing file. |
|
Save buffer. |
|
Save buffer. |
|
Update the namespace for autocompletion and calltips. |
Buffer
¶Buffer class.
__init__
(self, filename=None)¶Create a Buffer instance.
addEditor
(self, editor)¶Add an editor.
hasChanged
(self)¶Return True
if text in editor has changed since last save.
new
(self, filepath)¶New empty buffer.
open
(self, filename)¶Open file into buffer.
overwriteConfirm
(self, filepath)¶Confirm overwriting an existing file.
save
(self)¶Save buffer.
saveAs
(self, filename)¶Save buffer.
updateNamespace
(self)¶Update the namespace for autocompletion and calltips.
Return True
if updated, False
if there was an error.