Mercurial > code > home > repos > light9
changeset 332:d4aff817a304
add compatibility with louie.dispatcher
author | drewp@bigasterisk.com |
---|---|
date | Fri, 16 Mar 2007 21:10:44 +0000 |
parents | c579174d73b2 |
children | 44189a37a876 |
files | bin/curvecalc light9/curve.py light9/zoomcontrol.py |
diffstat | 3 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/curvecalc Mon Jun 19 01:08:07 2006 +0000 +++ b/bin/curvecalc Fri Mar 16 21:10:44 2007 +0000 @@ -8,7 +8,10 @@ import xmlrpclib,time,socket,sys,textwrap,math,glob,random,os,optparse from bisect import bisect_left,bisect,bisect_right import Tkinter as tk -from dispatch import dispatcher +try: + from dispatch import dispatcher +except ImportError: + import louie as dispatcher from twisted.internet import reactor,tksupport import twisted from twisted.web.xmlrpc import Proxy
--- a/light9/curve.py Mon Jun 19 01:08:07 2006 +0000 +++ b/light9/curve.py Fri Mar 16 21:10:44 2007 +0000 @@ -2,7 +2,10 @@ import sys,math,glob,random,os from bisect import bisect_left,bisect,bisect_right import Tkinter as tk -from dispatch import dispatcher +try: + from dispatch import dispatcher +except ImportError: + import louie as dispatcher import run_local from light9 import Submaster, dmxclient, networking, cursors
--- a/light9/zoomcontrol.py Mon Jun 19 01:08:07 2006 +0000 +++ b/light9/zoomcontrol.py Fri Mar 16 21:10:44 2007 +0000 @@ -1,6 +1,9 @@ from __future__ import division import Tkinter as tk -from dispatch import dispatcher +try: + from dispatch import dispatcher +except ImportError: + import louie as dispatcher from light9 import cursors class Zoomcontrol(object,tk.Canvas):