(self, name, label, data_type='group', group=None, label_safe=False, **params)
return self.new_question(name, label, data_type, group, label_safe=label_safe, **params)
Adds and returns a question group to the XForm.

        :param name: Group name
        :param label: Group label
        :param data_type: The type of the group ("group" or "repeatGroup")
        :param group: The name or names of the group(s) that this group is inside
        :param label_safe: Does the label contain (safe) XML?
        :param params: Supported question parameters: repeat_count
        :return: A QuestionGroup instance
Adds and returns a question group to the XForm.
Adds and returns a question group to the XForm .
def new_group(self, name, label, data_type='group', group=None, label_safe=False, **params):
        """
        Adds and returns a question group to the XForm.

        :param name: Group name
        :param label: Group label
        :param data_type: The type of the group ("group" or "repeatGroup")
        :param group: The name or names of the group(s) that this group is inside
        :param label_safe: Does the label contain (safe) XML?
        :param params: Supported question parameters: repeat_count
        :return: A QuestionGroup instance
        """
        if data_type not in GROUP_TYPES:
            raise TypeError('Unknown question group type "{}"'.format(data_type))
        # Note: new_question returns a QuestionGroup, because data_type is a group type.
        return self.new_question(name, label, data_type, group, label_safe=label_safe, **params)
def new_group ( self , name , label , data_type = 'group' , group = None , label_safe = False , * * params ) : if data_type not in GROUP_TYPES : raise TypeError ( 'Unknown question group type "{}"' . format ( data_type ) ) # Note: new_question returns a QuestionGroup, because data_type is a group type. return self . new_question ( name , label , data_type , group , label_safe = label_safe , * * params )