Mercurial > MadButterfly
diff pyink/MBScene.py @ 1216:61f1b3d424cf
Change order of framelines.
- In reversed order.
- Later ones always at top of earier ones.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 05 Jan 2011 19:27:05 +0800 |
parents | e55499f7505a |
children | 93acb8568ad3 |
line wrap: on
line diff
--- a/pyink/MBScene.py Wed Jan 05 18:53:54 2011 +0800 +++ b/pyink/MBScene.py Wed Jan 05 19:27:05 2011 +0800 @@ -583,10 +583,10 @@ hbox.pack_start(label,expand=False, fill=True) hbox.pack_start(line) vbox.pack_start(hbox, False) - - if layer_idx != len(self._framelines): - vbox.reorder_child(hbox, layer_idx + 1) # there is ruler at pos 0 - pass + + # Put later one on the top of earier one, but after the ruler. + position = len(self._framelines) - layer_idx + 1 + vbox.reorder_child(hbox, position) self._framelines[layer_idx: layer_idx] = [line]