示例#1
0
 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
示例#2
0
 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
示例#3
0
 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