Package rstem :: Package led_matrix :: Class LEDText
[hide private]
[frames] | no frames]

Class LEDText

source code

object --+    
         |    
 LEDSprite --+
             |
            LEDText

A LEDSprite object of a piece of text.

Instance Methods [hide private]
 
__init__(self, message, char_spacing=1, font_name='small', font_path=None)
Creates a text sprite of the given string This object can be used the same way a sprite is useds
source code

Inherited from LEDSprite: append, copy, flip_horizontal, flip_vertical, flipped_horizontal, flipped_vertical, get_pixel, invert, inverted, rotate, rotated, save_to_file, set_pixel

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from LEDSprite: height, width

Inherited from object: __class__

Method Details [hide private]

__init__(self, message, char_spacing=1, font_name='small', font_path=None)
(Constructor)

source code 

Creates a text sprite of the given string This object can be used the same way a sprite is useds

Parameters:
  • char_spacing (int) - number pixels between characters
  • font_name (string) - Font folder (or .font) file to use as font face
  • font_path (string) - Directory to use to look for fonts. If None it will used default directory in dist-packages
Overrides: object.__init__