Mercurial > code > home > repos > light9
diff bin/kcclient @ 270:54774cba50c9
revive kcclient and fix subcomposer so kcclient works through refreshes
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 17 Jun 2005 17:52:56 +0000 |
parents | flax/kcclient@3905d3c92aaa |
children | 179281f28d65 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/kcclient Fri Jun 17 17:52:56 2005 +0000 @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +"""send KeyboardComposer a fade request, for use from the shell""" + +import sys,xmlrpclib +import run_local +from light9 import networking + +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://%s:%s" % + (networking.kcServer(), + networking.kcPort())) + +levelserver.fadesub(subname,level,fadesecs) + +