August'24: Kamaelia is in maintenance mode and will recieve periodic updates, about twice a year, primarily targeted around Python 3 and ecosystem compatibility. PRs are always welcome. Latest Release: 1.14.32 (2024/3/24)
Cookbook Example
How can I...?
Examples 11 : Simple example showing how to use the ticker component. The ticker component was first developed for displaying subtitles. Components used: Ticker, pipeline, ReadFileAdaptor
#!/usr/bin/python
from Kamaelia.UI.Pygame.Ticker import Ticker
from Kamaelia.Util.PipelineComponent import pipeline
from Kamaelia.ReadFileAdaptor import ReadFileAdaptor
"Ulysses"),
pipeline( ReadFileAdaptor(=(128,48,128),
Ticker(background_colour= 1,
render_left = 1,
render_top = 600,
render_right = 200,
render_bottom = (100, 300),
position
) ).run()
Source: Examples/example11/Ticker.py