diff --git a/flax/bumppad b/bin/bumppad copy from flax/bumppad copy to bin/bumppad --- a/flax/bumppad +++ b/bin/bumppad @@ -3,11 +3,11 @@ from __future__ import division,nested_s import sys, time, math import Tkinter as tk -sys.path.append("../light8") -import dmxclient -from TLUtility import make_attributes_from_args +import run_local +import light9.dmxclient as dmxclient +from light9.TLUtility import make_attributes_from_args -from Submaster import Submaster,sub_maxes +from light9.Submaster import Submaster,sub_maxes class pad(tk.Frame): levs = None # Submaster : level @@ -52,8 +52,11 @@ class pad(tk.Frame): root=tk.Tk() root.tk_setPalette("maroon4") +root.wm_title("bumppad") +mag = tk.DoubleVar() -mag = tk.DoubleVar() +tk.Label(root,text="Keypad press/release activate sub; 1..5 set mag", + font="Helvetica -12 italic",anchor='w').pack(side='bottom',fill='x') pad(root,root,mag).pack(side='left',fill='both',exp=1) @@ -62,4 +65,6 @@ magscl = tk.Scale(root,orient='vertical' for i in range(1,6): root.bind(""%i,lambda ev,i=i: mag.set(math.sqrt((i )/5))) magscl.pack(side='left',fill='y') + + root.mainloop()