LilyPondGrobNameManager

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.lilypondnames" { graph [label="abjad.lilypondnames"]; node [color=1]; "abjad.lilypondnames.LilyPondGrobNameManager.LilyPondGrobNameManager" [URL="../api/abjad/lilypondnames/LilyPondGrobNameManager.html#abjad.lilypondnames.LilyPondGrobNameManager.LilyPondGrobNameManager", color=black, fontcolor=white, label="Lily\nPond\nGrob\nName\nManager", target=_top]; "abjad.lilypondnames.LilyPondNameManager.LilyPondNameManager" [URL="../api/abjad/lilypondnames/LilyPondNameManager.html#abjad.lilypondnames.LilyPondNameManager.LilyPondNameManager", label="Lily\nPond\nName\nManager", target=_top]; "abjad.lilypondnames.LilyPondNameManager.LilyPondNameManager" -> "abjad.lilypondnames.LilyPondGrobNameManager.LilyPondGrobNameManager"; } subgraph cluster_builtins { graph [label=builtins]; node [color=2]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "builtins.object" -> "abjad.lilypondnames.LilyPondNameManager.LilyPondNameManager"; }

class abjad.lilypondnames.LilyPondGrobNameManager.LilyPondGrobNameManager

LilyPond grob name manager.

LilyPondGrobNameManager instances are created by the abjad.override() factory function:

>>> note = abjad.Note("c'4")
>>> abjad.override(note)
LilyPondGrobNameManager()

Attributes Summary

__getattr__ Gets LilyPondNameManager (or LilyPondGrobNameManager) keyed to name.
__setattr__ Sets attribute attribute of grob name manager to value.

Special methods

(LilyPondNameManager).__eq__(argument)

Is true when argument is a LilyPond name manager with attribute pairs equal to those of this LilyPond name manager.

Return type:bool
__getattr__(name)

Gets LilyPondNameManager (or LilyPondGrobNameManager) keyed to name.

Somewhat confusingly, getting a grob name returns a LilyPondNameManager:

>>> staff = abjad.Staff("c'4 d' e' f'")
>>> abjad.override(staff[0]).note_head
LilyPondNameManager()

While getting a context name returns a LilyPondGrobNameManager:

>>> staff = abjad.Staff("c'4 d' e' f'")
>>> abjad.override(staff[0]).staff
LilyPondGrobNameManager()

Which can then be deferenced to get a LilyPondNameManager:

>>> staff = abjad.Staff("c'4 d' e' f'")
>>> abjad.override(staff[0]).staff.note_head
LilyPondNameManager()

Note that the dot-chained user syntax is unproblematic. But the class of each manager returned in the chain is likely to be surprising at first encounter.

Return type:LilyPondNameManager
(LilyPondNameManager).__hash__()

Hashes LilyPond name manager.

Redefined in tandem with __eq__.

Return type:int
(LilyPondNameManager).__repr__()

Gets interpreter representation of LilyPond name manager.

Return type:str
__setattr__(attribute, value)

Sets attribute attribute of grob name manager to value.

Return type:None