Text¶
The value type Text is used to display a Text in the control section of the property palette. In combination with the Row tag it can be used to create the header of a table like
Syntax¶
<Parameter>
<Name>FirstText</Name>
<Text></Text>
<Value>X</Value>
<ValueType>Text</ValueType>
</Parameter>
Optional¶
If the PythonPart should be localized, the following tag must be added
<TextId>1001</TextId>
The localization of the value text can be achieved by adding the tag
<ValueTextId>1002</ValueTextId>
Sometimes it’s useful to hide the text depending on the value of another parameter. This is achieved by adding an additional tag to the parameter or by defining a function in the py-file Enable and visible options
Example¶
The implementation of the Text value type is described in the example Text, which is located in
…\etc\Examples\PythonParts\PaletteExamples\Text.pyp
…\etc\PythonPartsExampleScripts\PaletteExamples\Text.py