Ejemplo n.º 1
0
    def register_group(self, group, title):
        """
		``register_group`` registers a group in the schema for this `Settings` instance

		:param str group: a unique identifier
		:param str title: a user friendly name appropriate for UI presentation
		:return: True on success, False on failure.
		:rtype: bool
		:Example:

			>>> Settings().register_group("solver", "Solver")
			True
			>>>
		"""
        return core.BNSettingsRegisterGroup(self.handle, group, title)
Ejemplo n.º 2
0
    def register_group(self, group, title):
        """
		``register_group`` registers a group for use with this Settings registry. Groups provide a simple way to organize settings.

		:param str group: a unique identifier
		:param str title: a user friendly name appropriate for UI presentation
		:return: True on success, False on failure.
		:rtype: bool
		:Example:

			>>> Settings().register_group("solver", "Solver")
			True
			>>>
		"""
        return core.BNSettingsRegisterGroup(self.registry_id, group, title)