April 2024 - This site, and Kamaelia are being updated. There is significant work needed, and PRs are welcome.
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