Phoenix Logo

phoenix_title wx.py.editor.Editor

Editor having an EditWindow.


class_hierarchy Class Hierarchy

Inheritance diagram for class Editor:


method_summary Methods Summary

__init__ Create Editor instance.
autoCallTipShow Display argument spec and docstring in a popup window.
autoCompleteShow Display auto-completion popup list.
clearAll  
destroy Destroy all editor objects.
emptyUndoBuffer  
getStatus Return (filepath, line, column) status tuple.
getText Return contents of editor.
hasChanged Return True if contents have changed.
OnChar Keypress event handler.
OnKeyDown Key down event handler.
setFocus Set the input focus to the editor window.
setSavePoint  
setText Set contents of editor.

api Class API



class Editor

Editor having an EditWindow.


Methods



__init__(self, parent, id=-1, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.CLIP_CHILDREN | wx.SUNKEN_BORDER)

Create Editor instance.



autoCallTipShow(self, command)

Display argument spec and docstring in a popup window.



autoCompleteShow(self, command)

Display auto-completion popup list.



clearAll(self)


destroy(self)

Destroy all editor objects.



emptyUndoBuffer(self)


getStatus(self)

Return (filepath, line, column) status tuple.



getText(self)

Return contents of editor.



hasChanged(self)

Return True if contents have changed.



OnChar(self, event)

Keypress event handler.

Only receives an event if OnKeyDown calls event.Skip() for the corresponding event.



OnKeyDown(self, event)

Key down event handler.



setFocus(self)

Set the input focus to the editor window.



setSavePoint(self)


setText(self, text)

Set contents of editor.