malcolm.modules.system.parts

class malcolm.modules.system.parts.DirParsePart(name: Anno(name='APartName', typ=<class 'str'>, description='The name of the Part within the Controller'), ioc: Anno(name='AIoc', typ=<class 'str'>, description='name of IOC'))[source]
Parameters:
  • name (str) – The name of the Part within the Controller
  • ioc (str) – name of IOC
setup(registrar: malcolm.core.part.PartRegistrar) → None[source]

Use the given PartRegistrar to populate the hooks and fields. This function is called for all parts in a block when the block’s Controller is added to a Process

class malcolm.modules.system.parts.IocIconPart(ioc: Anno(name='AIoc', typ=<class 'str'>, description='name of IOC'), initial_svg: Anno(name='ASvg', typ=<class 'str'>, description='If given, path to svg for initial value'))[source]
Parameters:
  • ioc (str) – name of IOC
  • initial_svg (str) – If given, path to svg for initial value
setup(registrar: malcolm.core.part.PartRegistrar) → None[source]

Use the given PartRegistrar to populate the hooks and fields. This function is called for all parts in a block when the block’s Controller is added to a Process