def apply_saved_layout(self):
num_widgets = self.config.get(self.config_key + "<STR_LIT>", int)<EOL>if num_widgets:<EOL><INDENT>sizes = []<EOL>for i in range(num_widgets):<EOL><INDENT>key = "<STR_LIT>" % (self.config_key, i)<EOL>size = self.config.get(key, int)<EOL>sizes.append(size)<EOL><DEDENT>self.setSizes(sizes)<EOL>return True<EOL><DEDENT>return False<EOL>
Call this after adding your child widgets.