typerig.proxy.gs3.gui.dialogs · declarations 001
Back to typerig.proxy.gs3.gui.dialogs
BTN_GAP
module-attribute
BTN_GAP
BTN_W
module-attribute
BTN_W
PAD
module-attribute
PAD
ROW_H
module-attribute
ROW_H
SEARCH_H
module-attribute
SEARCH_H
TABLE_TOP
module-attribute
TABLE_TOP
WIN_H
WIN_H
WIN_W
WIN_W
ask_choices
ask_choices(message, info, choices, ok_title='OK', cancel_title='Cancel')
Modal alert: a message, an informative text and one popup per choice. choices: [(key, caption, [(value, title), ...], default value)]. Returns {key: value} on OK, None on Cancel. No vanilla window is made.
ask_values
ask_values(message, info, fields, ok_title='OK', cancel_title='Cancel')
Modal alert: a message, an informative text and one number field per value. fields: [(key, caption, default, (min, max))]. A value that does not parse falls back to its default; one outside the range is clamped. Returns {key: float} on OK, None on Cancel. No vanilla window is made.
layer_kind
layer_kind(layer)
Return the Glyphs-accurate type name for a GSLayer.
read_master_steps
read_master_steps(font, lib_key, default=(1.0, 1.0))
Per-master (x, y) steps stored by TRMasterStepsDialog, as
dict[master_name -> (x, y)]; {} if absent. Malformed entries get default.
read_master_values
read_master_values(font, lib_key)
Per-master values stored by TRMasterValuesDialog: font.userData[lib_key] as dict[master_name -> float], or {} if absent or malformed. Same reading as TR Panel Node's _read_lib_dict, shared for Toolbars.