def spaced_section_box(bool, name): box = mforms.newSectionBox(bool, name) box.set_padding(PropelForm.defaults['space']) box.set_spacing(PropelForm.defaults['space']) return box
def add_section(self, label_text, is_content_expandable, header_mode): section = newSectionBox(is_content_expandable, label_text, header_mode) section.set_name(label_text) self.add(section, not is_content_expandable, True) return section