Mercurial > MadButterfly
comparison pyink/MBScene.py @ 1032:148ce30a861d
SHift the ruler to the right to align to the frames
author | wycc |
---|---|
date | Mon, 22 Nov 2010 22:44:27 +0800 |
parents | ee31add87843 |
children | 16c69756ef5d |
comparison
equal
deleted
inserted
replaced
983:ee31add87843 | 1032:148ce30a861d |
---|---|
428 self.scrollwin.add_with_viewport(vbox) | 428 self.scrollwin.add_with_viewport(vbox) |
429 | 429 |
430 ruler = frameline.frameruler(nframes) | 430 ruler = frameline.frameruler(nframes) |
431 ruler.set_size_request(nframes * 10, 20) | 431 ruler.set_size_request(nframes * 10, 20) |
432 ruler.show() | 432 ruler.show() |
433 vbox.pack_start(ruler, False) | 433 hbox = gtk.HBox() |
434 label=gtk.Label('') | |
435 label.set_size_request(100,0) | |
436 hbox.pack_start(label,expand=False,fill=True) | |
437 hbox.pack_start(ruler) | |
438 vbox.pack_start(hbox, False) | |
434 | 439 |
435 # | 440 # |
436 # Add a frameline for each layer | 441 # Add a frameline for each layer |
437 # | 442 # |
438 self._framelines = [] | 443 self._framelines = [] |