Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
959:67823f7a0a17 | 960:8fd97e0becb3 |
---|---|
520 ruler = frameline.frameruler(nframes) | 520 ruler = frameline.frameruler(nframes) |
521 ruler.set_size_request(nframes * 10, 20) | 521 ruler.set_size_request(nframes * 10, 20) |
522 ruler.show() | 522 ruler.show() |
523 vbox.pack_start(ruler, False) | 523 vbox.pack_start(ruler, False) |
524 | 524 |
525 line = frameline.frameline(nframes) | 525 # |
526 line.set_size_request(nframes * 10, 20) | 526 # Add a frameline for each layer |
527 vbox.pack_start(line, False) | 527 # |
528 self._framelines = [] | |
529 for i in range(len(self.layer)): | |
530 line = frameline.frameline(nframes) | |
531 line.set_size_request(nframes * 10, 20) | |
532 vbox.pack_start(line, False) | |
533 self._framelines.append(line) | |
534 pass | |
535 pass | |
536 | |
537 def update_framelines(self): | |
528 pass | 538 pass |
529 | 539 |
530 def showGrid(self): | 540 def showGrid(self): |
531 max = 0 | 541 max = 0 |
532 for layer in self.layer: | 542 for layer in self.layer: |