diff light8/panels.py @ 69:ab0be21b549b

result of 7.9.2002 rehearsal
author dmcc
date Thu, 11 Jul 2002 00:17:02 +0000
parents 57b3c454465a
children 2dfae9ed1cda
line wrap: on
line diff
--- a/light8/panels.py	Wed Jul 10 00:39:14 2002 +0000
+++ b/light8/panels.py	Thu Jul 11 00:17:02 2002 +0000
@@ -78,14 +78,14 @@
         # these labels
 
 class Subpanels:
-    def __init__(self, scenesparent, effectsparent, lightboard,
+    def __init__(self, scenesparent, effectsparent, scenes, lightboard,
                  scalelevels, Subs, xfader,
                  changelevel, subediting, longestname):
         
         sublist = Subs.subs.items()
         sublist.sort()
 
-        for p in scenesparent,effectsparent:
+        for p in scenesparent,effectsparent,scenes:
             sw = ScrolledWindow(p)
             for but,units in ( (4,-4),(5,4) ):
                 sw.window.bind("<ButtonPress-%s>"%but,lambda ev,s=sw.vsb,u=units: s.tk.call('tkScrollByUnits',s,'hv',u))
@@ -93,8 +93,10 @@
             sw.pack(expand=1,fill=BOTH)
             if p==scenesparent:
                 scenesparent = sw.window
+            elif p==effectsparent:
+                effectsparent = sw.window
             else:
-                effectsparent = sw.window
+                scenes=sw.window
 
         for name, sub in sublist:
             # choose one of the sub panels to add to
@@ -106,6 +108,14 @@
                 end1=0
                 end2=1
                 width1=len(name)
+            elif name.startswith("*") and name[1].isdigit():
+                parent=scenes
+                side1='right'
+                side2='top'
+                orient1='horiz'
+                end1=1
+                end2=0
+                width1=longestname
             else:
                 parent=scenesparent
                 side1='right'