RTC Toolkit 4.0.1
Loading...
Searching...
No Matches
Functions
rtctkfactory Namespace Reference

Functions

Type[TaurusValue] rtctk_factory (TaurusModel model)
 Taurus Value Factory to be registered as a TaurusForm item factory plugin.
 

Function Documentation

◆ rtctk_factory()

Type[TaurusValue] rtctkfactory.rtctk_factory ( TaurusModel  model)

Taurus Value Factory to be registered as a TaurusForm item factory plugin.

This method takes as argument a TaurusModel object. It can use it to query any specific information. Then, it return a Widget Class that inherits from TaurusValue.

This factory is intended to be loaded automatically by taurus by using the entry point "taurus.form.item_factories" in the "taurus" package.

The entry should look like: rtctk_Form_ItemFactory=rtctk.ctrlmontool.gui.widgets.rtctkfactory:RtctkFactory

<name_of_entry>=<python_module>:<factory_method>

See https://taurus-scada.org/devel/plugins.html#form-factories See https://packaging.python.org/en/latest/specifications/entry-points/

Parameters
modeltaurus model object (Device, Attribute, Authority)
Returns
Custom TaurusValue class