atk.RelationSeta set of atk.Relation
objects, normally the set of atk.Relation
objects that an atk.Object
has.Synopsisatk.RelationSetgobject.GObjectatk.RelationSetcontainsrelationshipremoverelationaddrelationget_n_relationsget_relationiget_relation_by_typerelationshipAncestry+-- gobject.GObject
+-- atk.RelationSet
atk.RelationSet Signal Prototypesgobject.GObject Signal PrototypesDescriptionThe atk.RelationSet
held by an object establishes its relationships with objects beyond the
normal "parent/child" hierarchical relationships that all user interface
objects have. atk.RelationSet
objects establish whether objects are labelled or controlled by other
components, share group membership with other components (for instance
within a radio-button group), or share content which "flows" between
them, among other types of possible relationships.Constructoratk.RelationSetatk.RelationSetReturns :a new atk.RelationSetCreates a new empty relation set.Methodsatk.RelationSet.containscontainsrelationshiprelationship :one of the .Returns :True if
relationship is the relationship
type.Determines whether the relation set contains a relation that
matches the type specified by
relationship.atk.RelationSet.removeremoverelationrelation :an atk.RelationRemoves a relation from the relation set.atk.RelationSet.addaddrelationrelation :an atk.RelationAdd a new atk.Relation
to the current relation set if it is not already present.atk.RelationSet.get_n_relationsget_n_relationsReturns :an integer representing the number of relations
in the set.Returns the number of relations in a relation set.atk.RelationSet.get_relationget_relationii :an index representing a position in the set,
starting from 0.Returns :the atk.Relation,
that is the relation at position i in the
set.Determines the relation at the specified position in the relation set.atk.RelationSet.get_relation_by_typeget_relation_by_typerelationshiprelationship :one of the .Returns :an atk.Relation,
which is a relation matching the specified
type.Finds a relation that matches the specified type.