GMime.TextPart¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_object |
r |
parent |
Class Details¶
- class GMime.TextPart(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A text MIME part object.
- classmethod new()¶
- Returns:
an empty MIME Part object with a default content-type of text/plain.
- Return type:
Creates a new text MIME part object with a default content-type of text/plain.
- classmethod new_with_subtype(subtype)¶
- Parameters:
subtype (
str
) – textual subtype string- Returns:
an empty text MIME part object with the specified subtype.
- Return type:
Creates a new text MIME part with a sepcified subtype.
- get_charset()¶
-
Gets the value of the charset parameter on the Content-Type header.
- get_text()¶
- Returns:
a newly allocated string containing the utf-8 encoded text content.
- Return type:
Gets the text content of the self as a string.