def create_new_section(self, category, actions): new_section = Factory.ActionsSection(_tl_text=category) self.bind(size=new_section.set_section_size) self.populate_actions_stack(new_section, category, actions) return new_section