class documentation
class GifImageFormatter(ImageFormatter): (source)
Create a GIF image from source code. This uses the Python Imaging Library to generate a pixmap from the source code. .. versionadded:: 1.0
Class Variable | aliases |
Undocumented |
Class Variable | default |
Undocumented |
Class Variable | filenames |
Undocumented |
Class Variable | name |
Undocumented |
Inherited from ImageFormatter
:
Method | __init__ |
See the class docstring for explanation of options. |
Method | format |
Format ``tokensource``, an iterable of ``(tokentype, tokenstring)`` tuples and write it into ``outfile``. |
Method | get |
Return the style definitions for the current style as a string. |
Class Variable | unicodeoutput |
Undocumented |
Instance Variable | background |
Undocumented |
Instance Variable | drawables |
Undocumented |
Instance Variable | encoding |
Undocumented |
Instance Variable | fonth |
Undocumented |
Instance Variable | fonts |
Undocumented |
Instance Variable | fontw |
Undocumented |
Instance Variable | hl |
Undocumented |
Instance Variable | hl |
Undocumented |
Instance Variable | image |
Undocumented |
Instance Variable | image |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | line |
Undocumented |
Instance Variable | maxcharno |
Undocumented |
Instance Variable | maxlinelength |
Undocumented |
Instance Variable | maxlineno |
Undocumented |
Instance Variable | styles |
Undocumented |
Method | _create |
Create drawables for the token content. |
Method | _draw |
Create drawables for the line numbers. |
Method | _draw |
Remember a line number drawable to paint later. |
Method | _draw |
Remember a single drawable tuple to paint later. |
Method | _get |
Get the width of a character. |
Method | _get |
Get the X coordinate of a character position. |
Method | _get |
Get the required image size. |
Method | _get |
Get the height of a line. |
Method | _get |
Get the Y coordinate of a line number. |
Method | _get |
Get the actual position for the start of a line number. |
Method | _get |
Get the correct font for the style. |
Method | _get |
Get the correct background color for the token from the style. |
Method | _get |
Get the correct color for the token from the style. |
Method | _get |
Get the actual position for a character and line position. |
Method | _paint |
Paint the line number background on the image. |
Inherited from Formatter
(via ImageFormatter
):
Instance Variable | full |
Undocumented |
Instance Variable | options |
Undocumented |
Instance Variable | style |
Undocumented |
Instance Variable | title |
Undocumented |