Logo Search packages:      
Sourcecode: sanduhr version File versions  Download package

ex-simple1.py

#! /usr/bin/env python

"""ex-simple1.py - Creating timer objects with CORBA

The following Python script creates a timer which expires after 30
seconds.  If you run this script, it should open a new timer window,
and terminate immediately (without waiting for the timer to expire).
If you are not using ORBit-Python you may need to call your ORB's IDL
compiler to generate the SandUhr module."""

import CORBA, oaf, SandUhr

oaf.init()
factory = oaf.activate("repo_ids.has('IDL:SandUhr/TimerFactory:1.0')",[])
factory.CreateTimer ("+30s", "timer expired")

Generated by  Doxygen 1.6.0   Back to index