Skip to content

typerig.proxy.gs3.gui.widgets.IconButton

IconButton

Square button rendered with the TypeRig icon font.

Args: posSize: standard vanilla 4-tuple (x, y, w, h). token (str): icon ligature name. callback: function(sender) -> None. tooltip (str | None): hover tooltip. checkable (bool): if True, behaves as a toggle. size (float): icon point size. Defaults to UI.BTN.ICON_PT — do not pass a literal at call sites; if a variant size is needed, add a new field on UI and reference it here.

Source bases

  • vanilla.Button (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, posSize, token, callback=None, tooltip=None, checkable=False, size=None)
isChecked function (self)
setChecked function (self, value)
setToken function (self, token) Swap the rendered icon (e.g. fold_up <-> fold_down).