Changeset - 4e7d40c6aa42
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 20 years ago 2005-06-15 03:19:46
drewp@bigasterisk.com
removed old dependency on semprini
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
bin/curvecalc
Show inline comments
 
@@ -9,27 +9,25 @@ import xmlrpclib,time,socket,sys,textwra
 
from bisect import bisect_left,bisect,bisect_right
 
import Tkinter as tk
 
from dispatch import dispatcher
 
from twisted.internet import reactor,tksupport
 
import twisted
 
from twisted.web.xmlrpc import Proxy
 

	
 
import run_local
 
from light9 import Submaster, dmxclient, networking, showconfig
 
from light9.TLUtility import make_attributes_from_args
 
from light9.zoomcontrol import Zoomcontrol
 
from light9.curve import Curve, Curveview, Curveset, Curvesetview
 

	
 
sys.path.extend(["../semprini","../../semprini"])
 
from lengther import wavelength # for measuring duration of .wav
 
from light9.wavelength import wavelength 
 

	
 
class Music:
 
    def __init__(self):
 
        self.player=None # xmlrpc Proxy to player
 
        self.recenttime=0
 
        
 
    def current_time(self):
 
        """return deferred which gets called with the current time"""
 
        if self.player is None:
 
            self.player = Proxy(networking.musicUrl())
 
#            d = self.player.callRemote("songlength")
 
#            d.addCallback(lambda l: dispatcher.send("max time",maxtime=l))
0 comments (0 inline, 0 general)