changeset 119:6f9898f00c9c

now uses dmxclient to talk to dmxserver
author drewp
date Fri, 13 Jun 2003 13:59:32 +0000
parents 2c25a69c084d
children b75bfbcf5979
files light8/Lightboard.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/light8/Lightboard.py	Fri Jun 13 13:59:08 2003 +0000
+++ b/light8/Lightboard.py	Fri Jun 13 13:59:32 2003 +0000
@@ -3,7 +3,6 @@
 from Tix import *
 from signal import signal, SIGINT
 from time import time
-import xmlrpclib
 import sys, cPickle, random
 
 from uihelpers import *
@@ -13,6 +12,7 @@
 from Fader import Fader
 from ExternalInput import ExternalSliders
 import io, stage, Subs, Patch, ExtSliderMapper
+import dmxclient
 
 class Pickles:
     def __init__(self, scalelevels, subs=None, windowpos=None):
@@ -50,9 +50,6 @@
         self.buildinterface()
         self.load()
 
-        # get a connection to the dmx server
-        self.dmxserver=xmlrpclib.Server("http://localhost:8030")
-        
         print "Light 8.8: Entering backgroundloop"
         self.backgroundloop()
         self.updatestagelevels()
@@ -299,7 +296,7 @@
             levels = [min(100, max(x + delta, 0)) for x in levels]
             # print "jostled", levels
 
-        self.dmxserver.outputlevels("light8-%s" %os.getpid(),[l/100 for l in levels])
+        dmxclient.outputlevels([l/100 for l in levels])
 #        self.parportdmx.sendlevels(levels)
 
     def updatestagelevels(self):