wx.richtext.RichTextPlainTextHandler¶Implements saving a buffer to plain text.
See also
wx.richtext.RichTextFileHandler, wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
Class Hierarchy¶
Inheritance diagram for class RichTextPlainTextHandler:

Methods Summary¶Returns |
|
Returns |
|
Override to load content from stream into buffer. |
|
Override to save content to stream from buffer. |
Class API¶wx.richtext.RichTextPlainTextHandler(RichTextFileHandler)¶Possible constructors:
RichTextPlainTextHandler(name="Text", ext="txt",
type=RICHTEXT_TYPE_TEXT)
Implements saving a buffer to plain text.
__init__(self, name="Text", ext="txt", type=RICHTEXT_TYPE_TEXT)¶name (string) –
ext (string) –
type (RichTextFileType) –
CanLoad(self)¶Returns True if we can load using this handler.
bool
CanSave(self)¶Returns True if we can save using this handler.
bool
DoLoadFile(self, buffer, stream)¶Override to load content from stream into buffer.
buffer (wx.richtext.RichTextBuffer) –
stream (wx.InputStream) –
bool
DoSaveFile(self, buffer, stream)¶Override to save content to stream from buffer.
buffer (wx.richtext.RichTextBuffer) –
stream (wx.OutputStream) –
bool