Mercurial > MadButterfly
diff pyink/MBScene.py @ 960:8fd97e0becb3
Add a frameline for each layer
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 17 Nov 2010 17:09:13 +0800 |
parents | 67823f7a0a17 |
children | b6375e74c69e |
line wrap: on
line diff
--- a/pyink/MBScene.py Wed Nov 17 15:19:35 2010 +0800 +++ b/pyink/MBScene.py Wed Nov 17 17:09:13 2010 +0800 @@ -522,9 +522,19 @@ ruler.show() vbox.pack_start(ruler, False) - line = frameline.frameline(nframes) - line.set_size_request(nframes * 10, 20) - vbox.pack_start(line, False) + # + # Add a frameline for each layer + # + self._framelines = [] + for i in range(len(self.layer)): + line = frameline.frameline(nframes) + line.set_size_request(nframes * 10, 20) + vbox.pack_start(line, False) + self._framelines.append(line) + pass + pass + + def update_framelines(self): pass def showGrid(self):