Module ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A defcon.objects.base BaseDictObject Groups N/A BaseDictObject N/A N/A 
    This object contains all of the groups in a font.

    **This object posts the following notifications:**

    ==============  ====
    Name            Note
    ==============  ====
    Groups.Changed  Posted when the *dirty* attribute is set.
    ==============  ====

    This object behaves like a dict. The keys are group names and the
    values are lists of glyph names::

        {
            "myGroup" : ["a", "b"],
            "myOtherGroup" : ["a.alt", "g.alt"],
        }

    The API for interacting with the data is the same as a standard dict.
    For example, to get a list of all group names::

        groupNames = groups.keys()

    To get all groups including the glyph lists::

        for groupName, glyphList in groups.items():

    To get the glyph list for a particular group name::

        glyphList = groups["myGroup"]

    To set the glyph list for a particular group name::

        groups["myGroup"] = ["x", "y", "z"]

    And so on.

    **Note:** You should not modify the group list and expect the object to
    know about it. For example, this could cause your changes to be lost::

        glyphList = groups["myGroups"]
        glyphList.append("n")

    To make sure the change is noticed, reset the list into the object::

        glyphList = groups["myGroups"]
        glyphList.append("n")
        groups["myGroups"] = glyphList

    This may change in the future.
     N/A changeNotificationName Groups.Changed N/A beginUndoNotificationName Groups.BeginUndo N/A endUndoNotificationName Groups.EndUndo N/A beginRedoNotificationName Groups.BeginRedo N/A endRedoNotificationName Groups.EndRedo N/A N/A N/A __name__ __main__ N/A N/A doctest N/A N/A N/A doctest testmod