Skip to content

typerig.proxy.gs3.gui.observer.TRObserver

TRObserver

Base for Toolbar observers. Subclasses set key, implement callbacks() and, for pointer work, event_mask + on_event(event). installed() / removed() run after the callbacks go in / out.

Source bases

  • object (not resolved from selected source)

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self)
bind_button function (self, btn) Keep a checkable button (IconButton / GridIconButton) in step with the observer, in every Toolbar.
callbacks function (self) [(callable, Glyphs callback type), ...]
configure function (self) Options dialog (Option+click on the button).
event_mask attribute
has_options attribute
installed function (self)
is_enabled function (self)
key attribute
name attribute
on_event function (self, event) Monitored event; return it to pass it on, None to swallow it.
removed function (self)
report function (self, e) Print an error once (not again until it changes).
restore function (self) Switch on if it was on when Glyphs last quit.
set_enabled function (self, on, remember=True) Install (on=True) or remove the callbacks and update bound buttons. remember=True stores the choice in Glyphs.defaults for restore().
toggle function (self, btn) Button callback: switch to the button's state.