Implements saving a buffer to plain text.
See also
wx.richtext.RichTextFileHandler, wx.richtext.RichTextBuffer, wx.richtext.RichTextCtrl
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: str="Text", ext: str="txt", type:
RichTextFileType=RICHTEXT_TYPE_TEXT) -> None
Implements saving a buffer to plain text.
__init__
(self, name: str="Text", ext: str="txt", type: RichTextFileType=RICHTEXT_TYPE_TEXT)¶name (string) –
ext (string) –
type (RichTextFileType) –
None
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 : RichTextBuffer, stream : InputStream)¶Override to load content from stream into buffer.
buffer (wx.richtext.RichTextBuffer) –
stream (wx.InputStream) –
bool
DoSaveFile
(self, buffer : RichTextBuffer, stream : OutputStream)¶Override to save content to stream from buffer.
buffer (wx.richtext.RichTextBuffer) –
stream (wx.OutputStream) –
bool