# HG changeset patch # User drewp@bigasterisk.com # Date 1213074095 0 # Node ID e14a646853b10247c9b13c0bccd30d9db498f3bd # Parent cd75a12ad66d3c85b3cf1e67a2a8268f83533c03 subcomposer font tweak, as usual diff -r cd75a12ad66d -r e14a646853b1 light9/dmxchanedit.py --- a/light9/dmxchanedit.py Tue Jun 10 04:57:36 2008 +0000 +++ b/light9/dmxchanedit.py Tue Jun 10 05:01:35 2008 +0000 @@ -6,20 +6,11 @@ """ 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 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