ControlPropertiesUtilΒΆ
The control properties are the internal data structure for creating the PythonPart property palette. The properties are responsible for the layout (text), value checking (min/max value, value list) and the visible and enable status of the control.
The ControlPropertiesUtil class is used to modify the control properties during the runtime of the PythonPart.
In case of a Standard PythonPart the ControlPropertiesUtil object is a parameter of the Dynamic property palette functions. If an Interactor PythonPart is created, the object must be constructed like
from ControlPropertiesUtil import ControlPropertiesUtil
...
ctrl_prop_util = ControlPropertiesUtil(control_props_list, build_ele_list)
Using the existing object, the modification of the control properties can be done as follows:
if ...:
ctrl_prop_util.set_text("Distance", "Distance from left")
else:
ctrl_prop_util.set_text("Distance", "Distance from right")
if ...:
ctrl_prop_util.set_value_list("Width", "300|400|500")
else:
ctrl_prop_util.set_value_list("Width", "500|600|700")
The first parameter is the value name, defined in the parameter section of the pyp file.
The complete documentation of the members from the ControlPropertiesUtil class can be found here: