Implements saving a buffer to plain text.
Returns |
|
Returns |
|
Override to load content from stream into buffer. |
|
Override to save content to stream from buffer. |
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