From e40fc849149dd97c248866a4a1d026dda5e57b62 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Mon, 7 Mar 2011 19:01:11 +0000 Subject: clean3 --- attic/muse2-oom/muse2/share/pybridge/musepclient.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 attic/muse2-oom/muse2/share/pybridge/musepclient.py (limited to 'attic/muse2-oom/muse2/share/pybridge/musepclient.py') diff --git a/attic/muse2-oom/muse2/share/pybridge/musepclient.py b/attic/muse2-oom/muse2/share/pybridge/musepclient.py new file mode 100644 index 00000000..dc87e4e8 --- /dev/null +++ b/attic/muse2-oom/muse2/share/pybridge/musepclient.py @@ -0,0 +1,17 @@ +# +# Example client for MusE Pyro bridge (Python Remote Object) +# +import Pyro.core +import time + +muse=Pyro.core.getProxyForURI('PYRONAME://:Default.muse') +print "Current position is: " + str(muse.getCPos()) +muse.startPlay() +time.sleep(1) # Sleep one second +muse.stopPlay() +print "New position is: " + str(muse.getCPos()) +muse.rewindStart() +print "Pos after rewind is: " + str(muse.getCPos()) +print "Lpos, Rpos: " + str(muse.getLPos()) + ":" + str(muse.getRPos()) + + -- cgit v1.2.3