Create paned layouts in a consistent order
This commit is contained in:
parent
684c6875cb
commit
7d80561710
|
@ -198,7 +198,9 @@ class Paned(Container):
|
||||||
return
|
return
|
||||||
|
|
||||||
num = 0
|
num = 0
|
||||||
for child_key in children:
|
keys = children.keys()
|
||||||
|
keys.sort()
|
||||||
|
for child_key in keys:
|
||||||
child = children[child_key]
|
child = children[child_key]
|
||||||
if child['type'] == 'Terminal':
|
if child['type'] == 'Terminal':
|
||||||
continue
|
continue
|
||||||
|
@ -218,8 +220,6 @@ class Paned(Container):
|
||||||
err('unknown child type: %s' % child['type'])
|
err('unknown child type: %s' % child['type'])
|
||||||
num = num + 1
|
num = num + 1
|
||||||
|
|
||||||
keys = children.keys()
|
|
||||||
keys.sort()
|
|
||||||
self.get_child1().create_layout(children[keys[0]])
|
self.get_child1().create_layout(children[keys[0]])
|
||||||
self.get_child2().create_layout(children[keys[1]])
|
self.get_child2().create_layout(children[keys[1]])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue