Mercurial > code > home > repos > light9
view flax/kcclient @ 258:c9940e4e68d6
TkGyro: read subs from argv or stdin, cleanups
Some documentation and code reorganization/cleanups
author | David McClosky <dmcc@bigasterisk.com> |
---|---|
date | Thu, 16 Jun 2005 05:16:30 +0000 |
parents | 3905d3c92aaa |
children |
line wrap: on
line source
#!/usr/bin/env python """send KeyboardComposer a fade request, for use from the shell""" import sys,xmlrpclib subname = sys.argv[1] level = float(sys.argv[2]) fadesecs = 0 if len(sys.argv)>3: fadesecs = float(sys.argv[3]) levelserver = xmlrpclib.ServerProxy("http://localhost:8050") levelserver.fadesub(subname,level,fadesecs)