speeds.py 549 B

123456789101112131415161718192021222324252627
  1. """
  2. The following constants are defined to change speeds in TEXT
  3. (:class:`alphasign.text.Text`) files:
  4. * :const:`SPEED_1` (slowest)
  5. * :const:`SPEED_2`
  6. * :const:`SPEED_3`
  7. * :const:`SPEED_4`
  8. * :const:`SPEED_5` (fastest)
  9. --------
  10. Examples
  11. --------
  12. Make a text file with fast text::
  13. msg = alphasign.Text("%sthis text is fast" % alphasign.speeds.SPEED_5,
  14. label="A",
  15. mode=alphasign.modes.ROTATE)
  16. """
  17. # Display speeds
  18. SPEED_1 = "\x15"
  19. SPEED_2 = "\x16"
  20. SPEED_3 = "\x17"
  21. SPEED_4 = "\x18"
  22. SPEED_5 = "\x19"