# HG changeset patch # User drewp@bigasterisk.com # Date 2005-06-13 00:37:59 # Node ID 079cc244a59edbf733b89c8db513a7018d2069fc # Parent e910fda2cd1fcff7ad758011ad9395ef80e0c56f port bumppad to new package system, small gui fixes diff --git a/flax/bumppad b/bin/bumppad rename from flax/bumppad rename 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()