/usr/share/doc/sanduhr/examples/ex-simple2.py is in sanduhr 1.93-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #! /usr/bin/env python
"""ex-simple2.py - Customising timer objects with CORBA
The following Python script creates a pink timer which beeps
five times when the alarm time is reached."""
import CORBA, oaf, SandUhr
oaf.init()
factory = oaf.activate("repo_ids.has('IDL:SandUhr/TimerFactory:1.0')",[])
timer = factory.CreateTimer ("+20s", "pink timer expired")
timer.SandColor=SandUhr.Timer.Color(Red=212,Green=78,Blue=222)
alarm = factory.CreateAlarmBeep (5)
timer.Alarm = alarm
|