Mercurial > code > home > repos > light9
changeset 427:e14a646853b1
subcomposer font tweak, as usual
author | drewp@bigasterisk.com |
---|---|
date | Tue, 10 Jun 2008 05:01:35 +0000 |
parents | cd75a12ad66d |
children | 5aec70b85d92 |
files | light9/dmxchanedit.py |
diffstat | 1 files changed, 2 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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