Defined in pyglet.text
get_decoder
(filename, mimetype=None)¶Get a document decoder for the given filename and MIME type.
If mimetype is omitted it is guessed from the filename extension.
The following MIME types are supported:
text/plain
text/html
text/vnd.pyglet-attributed
DocumentDecodeException is raised if another MIME type is given.
Parameters: |
|
---|---|
Return type: | DocumentDecoder |