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

    pipeline( ReadFileAdaptor("Ulysses"),
    Ticker(background_colour=(128,48,128),
    render_left = 1,
    render_top = 1,
    render_right = 600,
    render_bottom = 200,
    position = (100, 300),
    )
    ).run()
    Source: Examples/example11/Ticker.py

 

Kamaelia is an open source project originated from and guided by BBC Research. For more information browse the site or get in contact.

This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)

(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved

This web site is powered by the same code created for the bicker manor project. For more details, contact Michael Sparks at BBC Research directly (cf contact)