Changeset - e14a646853b1
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 17 years ago 2008-06-10 05:01:35
drewp@bigasterisk.com
subcomposer font tweak, as usual
1 file changed with 2 insertions and 13 deletions:
0 comments (0 inline, 0 general)
light9/dmxchanedit.py
Show inline comments
 
@@ -6,20 +6,11 @@ not actually match what dmxserver is out
 
"""
 
from __future__ import nested_scopes,division
 
import Tkinter as tk
 
import time
 
from light9 import Patch
 
from light9.uihelpers import make_frame, colorlabel, eventtoparent
 
try:
 
     from dispatch import dispatcher
 
except ImportError:
 
     import louie as dispatcher
 
import louie as dispatcher
 

	
 
# this font makes each label take 16ms to create, so startup is slow.
 
# with default font, each labl takes about .5ms to create.
 
stdfont = ('Arial', 12)
 
import tkFont
 
# see replacement stdfont below
 

	
 
stdfont = ('Arial', 9)
 

	
 
def gradient(lev, low=(80,80,180), high=(255,55,50)):
 
     out = [int(l+lev*(h-l)) for h,l in zip(high,low)]
 
@@ -130,8 +121,6 @@ class Onelevel(tk.Frame):
 
class Levelbox(tk.Frame):
 
    def __init__(self, parent, num_channels=68):
 
        tk.Frame.__init__(self,parent)
 
        global stdfont
 
        stdfont = tkFont.Font(size=8)
 
        self.levels = [] # Onelevel objects
 

	
 
        rows = 35
0 comments (0 inline, 0 general)