Handle creation of multiple tabs in a layout. Closes LP #583041

This commit is contained in:
Chris Jones 2010-05-25 20:08:20 +02:00
parent 3aba98dade
commit f2c62067c1

View File

@ -87,6 +87,10 @@ class Notebook(Container, gtk.Notebook):
num = 0
for child_key in keys:
page = self.get_nth_page(num)
if not page:
# This page does not yet exist, so make it
self.newtab(children[child_key])
page = self.get_nth_page(num)
page.create_layout(children[child_key])
num = num + 1