Phoenix Logo

phoenix_title wx.py.editor.EditorFrame

Frame containing one editor.


class_hierarchy Class Hierarchy

Inheritance diagram for class EditorFrame:


super_classes Known Superclasses

wx.py.frame.Frame


method_summary Methods Summary

__init__ Create EditorFrame instance.
bufferClose Close buffer.
bufferCreate Create new buffer.
bufferDestroy Destroy the current buffer.
bufferHasChanged Return True if buffer has changed since last save.
bufferNew Create new buffer.
bufferOpen Open file in buffer.
bufferSave Save buffer to its file.
bufferSaveAs Save buffer to a new filename.
bufferSuggestSave Suggest saving changes. Return True if user selected Cancel.
hasBuffer Return True if there is a current buffer.
OnAbout Display an About window.
OnClose Event handler for closing.
OnIdle Event handler for idle time.
setEditor  
updateNamespace Update the buffer namespace for autocompletion and calltips.

api Class API



class EditorFrame(frame.Frame)

Frame containing one editor.


Methods



__init__(self, parent=None, id=-1, title='PyAlaCarte', pos=wx.DefaultPosition, size=(800, 600), style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE, filename=None)

Create EditorFrame instance.



bufferClose(self)

Close buffer.



bufferCreate(self, filename=None)

Create new buffer.



bufferDestroy(self)

Destroy the current buffer.



bufferHasChanged(self)

Return True if buffer has changed since last save.



bufferNew(self)

Create new buffer.



bufferOpen(self)

Open file in buffer.



bufferSave(self)

Save buffer to its file.



bufferSaveAs(self)

Save buffer to a new filename.



bufferSuggestSave(self)

Suggest saving changes. Return True if user selected Cancel.



hasBuffer(self)

Return True if there is a current buffer.



OnAbout(self, event)

Display an About window.



OnClose(self, event)

Event handler for closing.



OnIdle(self, event)

Event handler for idle time.



setEditor(self, editor)


updateNamespace(self)

Update the buffer namespace for autocompletion and calltips.