changeset 285:34d29b3a1ce3

better presentation of long curve names in curvecalc
author Drew Perttula <drewp@bigasterisk.com>
date Sat, 18 Jun 2005 01:37:57 +0000
parents 304a918e7488
children 2848cf5e14c5
files light9/curve.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/curve.py	Fri Jun 17 20:49:10 2005 +0000
+++ b/light9/curve.py	Sat Jun 18 01:37:57 2005 +0000
@@ -338,8 +338,12 @@
         leftside.pack(side='left')
 
         collapsed = tk.IntVar()
-        tk.Label(leftside,text="curve %r" % name,font="6x10",
+        txt = "curve %r" % name
+        if len(name) > 7:
+            txt = repr(name)
+        tk.Label(leftside,text=txt,font="6x10",
                  width=15).pack(side='top')
+            
         def cmd():
             if collapsed.get():
                 f.pack(exp=0)