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