Lib

Overview

BaseLib.copy Copy this object into a new object of the same type.
BaseLib.glyph The lib’s parent glyph.
BaseLib.font The lib’s parent font.
BaseLib.__len__
BaseLib.keys
BaseLib.items
BaseLib.values
BaseLib.__contains__
BaseLib.__setitem__
BaseLib.__getitem__
BaseLib.get
BaseLib.__delitem__
BaseLib.pop
BaseLib.__iter__
BaseLib.update
BaseLib.clear
BaseLib.naked Return the environment’s native object that has been wrapped by this object.
BaseLib.changed Tell the environment that something has changed in the object.

Reference

class fontParts.base.BaseLib(*args, **kwargs)

Copy

BaseLib.copy()

Copy this object into a new object of the same type. The returned object will not have a parent object.

Parents

BaseLib.glyph

The lib’s parent glyph.

BaseLib.font

The lib’s parent font.

Dictionary

BaseLib.__len__()
BaseLib.keys()
BaseLib.items()
BaseLib.values()
BaseLib.__contains__(key)
BaseLib.__setitem__(key, value)
BaseLib.__getitem__(key)
BaseLib.get(key, default=None)
BaseLib.__delitem__(key)
BaseLib.pop(key, default=None)
BaseLib.__iter__()
BaseLib.update(other)
BaseLib.clear()

Environment

BaseLib.naked()

Return the environment’s native object that has been wrapped by this object.

>>> loweLevelObj = obj.naked()
BaseLib.changed(*args, **kwargs)

Tell the environment that something has changed in the object. The behavior of this method will vary from environment to environment.

>>> obj.changed()