# HG changeset patch # User Thinker K.F. Li # Date 1289984953 -28800 # Node ID 8fd97e0becb31b1e51a8e08f10e52b7af460b8a4 # Parent 67823f7a0a172b7637dc0e6495fe2ca6125bae7c Add a frameline for each layer diff -r 67823f7a0a17 -r 8fd97e0becb3 pyink/MBScene.py --- 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):