Phoenix Logo

phoenix_title wx.py.buffer.Buffer

Buffer class.


class_hierarchy Class Hierarchy

Inheritance diagram for class Buffer:


method_summary Methods Summary

__init__ Create a Buffer instance.
addEditor Add an editor.
hasChanged Return True if text in editor has changed since last save.
new New empty buffer.
open Open file into buffer.
overwriteConfirm Confirm overwriting an existing file.
save Save buffer.
saveAs Save buffer.
updateNamespace Update the namespace for autocompletion and calltips.

api Class API



class Buffer

Buffer class.


Methods



__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.