util
- class malcolm.modules.builtin.util.LayoutTable(name: Union[Anno(name='ANameArray', typ=<class 'str'>, description='Names of the layout parts'), Sequence[str]], mri: Union[Anno(name='AMriArray', typ=<class 'str'>, description='Malcolm full names of child blocks'), Sequence[str]], x: Union[Anno(name='AXArray', typ=<class 'float'>, description='X Coordinates of child blocks'), Sequence[float]], y: Union[Anno(name='AYArray', typ=<class 'float'>, description='Y Coordinates of child blocks'), Sequence[float]], visible: Union[Anno(name='AVisibleArray', typ=<class 'bool'>, description='Whether child blocks are visible'), Sequence[bool]])[source]
- class malcolm.modules.builtin.util.ExportTable(source: Union[Anno(name='ASourceNameArray', typ=<class 'str'>, description='Name of the block.field to export'), Sequence[str]], export: Union[Anno(name='AExportNameArray', typ=<class 'str'>, description='Name of the field to export as'), Sequence[str]])[source]
- malcolm.modules.builtin.util.wait_for_stateful_block_init(context, mri, timeout=10.0)[source]
Wait until a Block backed by a StatefulController has initialized
- malcolm.modules.builtin.util.no_save(*attribute_names)[source]
Helper for defining ChildPart.no_save_attribute_names.
- Parameters
attribute_names (str) – The Attributes of the child Block that shouldn’t be saved
- class malcolm.modules.builtin.util.SVGIcon(svg_text: str)[source]
Helper object for working with SVG icons